Function at 0x1037c0d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x103d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
call fcn.01039b3d
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x1037c54
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x1037f4d
push 0x10
pop ecx
cmp dword [ebp + 0x1c], ecx
jb 0x1037c5f
mov dword [ebp + 0x1c], ecx
push ebx
mov ebx, dword [ebp + 0x18]
push edi
xor edi, edi
mov eax, ebx
and eax, 0xf
inc edi
cmp eax, edi
jne 0x1037c77
mov eax, 0x102b880
jmp 0x1037ca9
cmp eax, 2
jne 0x1037c83
mov eax, 0x102b878
jmp 0x1037ca9
test cl, bl
je 0x1037c8e
mov eax, 0x102b870
jmp 0x1037ca9
test bl, 0x20
je 0x1037c9a
mov eax, 0x102b868
jmp 0x1037ca9
mov eax, 0x102b860
test bl, 0x40
jne 0x1037ca9
mov eax, 0x102b858
push eax
push dword [ebp - 0x30]
call fcn.01039ba8
test eax, eax
jne 0x1037cc1
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x1037f49
mov eax, dword [ebp + 0x14]
mov esi, 0x8000000
test eax, eax
je 0x1037de1
test al, 2
je 0x1037cdf
mov eax, 0x102b850
jmp 0x1037dd0
test al, 1
je 0x1037ced
mov eax, 0x102b848
jmp 0x1037dd0
test al, 4
je 0x1037cfb
mov eax, 0x102b840
jmp 0x1037dd0
test al, 8
je 0x1037d09
mov eax, 0x102b838
jmp 0x1037dd0
test al, 0x20
je 0x1037d17
mov eax, 0x102b830
jmp 0x1037dd0
test al, al
jns 0x1037d25
mov eax, 0x102b828
jmp 0x1037dd0
test eax, 0x100
je 0x1037d36
mov eax, 0x102b820
jmp 0x1037dd0
test eax, 0x200
je 0x1037d47
mov eax, 0x102b818
jmp 0x1037dd0
test eax, 0x400
je 0x1037d55
mov eax, 0x102b810
jmp 0x1037dd0
test eax, 0x1000000
je 0x1037d63
mov eax, 0x102b808
jmp 0x1037dd0
test eax, 0x2000000
je 0x1037d71
mov eax, 0x102b800
jmp 0x1037dd0
test eax, 0x4000000
je 0x1037d7f
mov eax, 0x102b7f8
jmp 0x1037dd0
test esi, eax
je 0x1037d8a
mov eax, 0x102b7f0
jmp 0x1037dd0
test eax, 0x10000000
je 0x1037d98
mov eax, 0x102b7e8
jmp 0x1037dd0
test eax, 0x40000000
je 0x1037da6
mov eax, 0x102b7e0
jmp 0x1037dd0
test eax, eax
jns 0x1037db1
mov eax, 0x102b7d8
jmp 0x1037dd0
test eax, 0x800000
je 0x1037dbf
mov eax, 0x102b7d0
jmp 0x1037dd0
test eax, 0x20000000
mov eax, 0x102b7c8
jne 0x1037dd0
mov eax, 0x102b7c0
push eax
push dword [ebp - 0x30]
call fcn.01039ba8
test eax, eax
je 0x1037cb6
test bl, 0x30
je 0x1037dfa
mov dword [ebp - 0x3c], edi
test ebx, 0x10000
je 0x1037eb6
mov dword [ebp - 0x34], edi
jmp 0x1037e16
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
test dword [eax + 0xc], esi
je 0x1037e0a
mov dword [ebp - 0x44], edi
jmp 0x1037e19
test ebx, 0x10000
je 0x1037eb6
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x46]
push eax
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4c]
push eax
push 0x102b7a8
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01035653
add esp, 0x1c
test eax, eax
jl 0x1037e7a
cmp dword [ebp - 0x34], 0
je 0x1037e82
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
push 0x102b798
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.01035653
add esp, 0x18
test eax, eax
jge 0x1037e82
movzx esi, ax
jmp 0x1037f4b
cmp dword [ebp - 0x44], 0
je 0x1037eb6
cmp dword [ebp - 0x34], 0
je 0x1037ea2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x30]
call fcn.01039ba8
test eax, eax
je 0x1037cb6
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.01039ba8
test eax, eax
je 0x1037cb6
xor esi, esi
cmp dword [ebp + 0x1c], esi
jbe 0x1037ed8
push 0x102b858
push dword [ebp - 0x30]
call fcn.01039ba8
test eax, eax
je 0x1037cb6
inc esi
cmp esi, dword [ebp + 0x1c]
jb 0x1037ebd
cmp dword [ebp - 0x3c], 0
jne 0x1037ef3
push 0x102b794
push dword [ebp - 0x30]
call fcn.01039ba8
test eax, eax
je 0x1037cb6
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x30]
push esi
call fcn.01039ba8
test eax, eax
je 0x1037cb6
cmp dword [ebp - 0x38], 0
je 0x1037f37
cmp dword [ebp - 0x34], 0
je 0x1037f25
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.01039ba8
test eax, eax
je 0x1037cb6
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.01039ba8
test eax, eax
je 0x1037cb6
push esi
call fcn.010397fa
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x40]
call fcn.01037945
mov esi, eax
pop edi
pop ebx
push dword [ebp - 0x30]
call fcn.010397d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01034b90
leave
ret 0x18