Function at 0x40af80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov edx, dword [0x519058]
mov eax, dword [ebp + 8]
mov esi, ecx
xor edx, ebp
test eax, eax
mov dword [esp + 0x120], edx
mov dword [esp + 0x60], eax
je 0x40afb6
push eax
call fcn.004abcf0
add esp, 4
jmp 0x40afb8
xor eax, eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push 0xffffffffffffffff
push 0x4e3388
push eax
call fcn.00413520
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b00f
mov ecx, dword [esp + 0x64]
lea ebx, [eax + 1]
cmp ecx, eax
ja 0x40b005
lea edi, [esp + 0x68]
mov ecx, edi
push str.n___length_
push 0xf3
push str..._.._base_strings_string_piece.h
call fcn.0040a140
mov ecx, edi
call fcn.0040a280
mov ecx, dword [esp + 0x64]
add dword [esp + 0x60], ebx
sub ecx, ebx
mov dword [esp + 0x64], ecx
lea edi, [esi + 8]
push 0x5b
push edi
call fcn.0040b580
add esp, 8
mov eax, dword [0x51b944]
test eax, eax
je 0x40b03b
push eax
push edi
call fcn.0045e430
add esp, 8
push 0x3a
push eax
call fcn.0040b580
add esp, 8
cmp byte [0x51b940], 0
je 0x40b066
lea ebx, [esp + 0x68]
push ebx
call fcn.004281b0
add esp, 4
push ebx
push edi
call fcn.00428190
add esp, 8
push 0x3a
push eax
call fcn.0040b580
add esp, 8
cmp byte [0x51b941], 0
je 0x40b087
call fcn.00406a70
mov ecx, edi
push eax
call fcn.0046f360
push 0x3a
push eax
call fcn.0040b580
add esp, 8
cmp byte [0x5181e0], 0
je 0x40b210
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov byte [edi + eax + 0x40], 0x30
lea eax, [esp + 0x50]
push 0
push 2
push eax
call fcn.0049edf8
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push eax
call dword [esp + 0x5c]
add esp, 0xc
movzx eax, word [esp + 0x6a]
mov ecx, edi
push eax
call fcn.0040b7f0
mov ebx, eax
lea eax, [esp + 0x40]
push 0
push 2
push eax
call fcn.0049edf8
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push eax
call dword [esp + 0x4c]
add esp, 0xc
movzx eax, word [esp + 0x6e]
mov ecx, ebx
push eax
call fcn.0040b7f0
push 0x2f
push eax
call fcn.0040b580
add esp, 8
mov ebx, eax
lea eax, [esp + 0x30]
push 0
push 2
push eax
call fcn.0049edf8
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [esp + 0x3c]
add esp, 0xc
movzx eax, word [esp + 0x70]
mov ecx, ebx
push eax
call fcn.0040b7f0
mov ebx, eax
lea eax, [esp + 0x20]
push 0
push 2
push eax
call fcn.0049edf8
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call dword [esp + 0x2c]
add esp, 0xc
movzx eax, word [esp + 0x72]
mov ecx, ebx
push eax
call fcn.0040b7f0
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push 2
push eax
call fcn.0049edf8
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [esp + 0x1c]
add esp, 0xc
movzx eax, word [esp + 0x74]
mov ecx, ebx
push eax
call fcn.0040b7f0
push 0x2e
push eax
call fcn.0040b580
add esp, 8
mov ebx, eax
mov eax, esp
push 0
push 3
push eax
call fcn.0049edf8
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call dword [esp + 0xc]
add esp, 0xc
movzx eax, word [esp + 0x76]
mov ecx, ebx
push eax
call fcn.0040b7f0
push 0x3a
push eax
call fcn.0040b580
add esp, 8
cmp byte [0x51b942], 0
je 0x40b234
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
push 0
push eax
call fcn.0040b960
push 0x3a
push eax
call fcn.0040b580
add esp, 8
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
test eax, eax
js 0x40b25a
mov ecx, str.UNKNOWN
cmp eax, 3
ja 0x40b24e
mov ecx, dword [eax*4 + 0x4e3400]
push ecx
push edi
call fcn.0045e430
add esp, 8
jmp 0x40b274
push str.VERBOSE
push edi
call fcn.0045e430
add esp, 8
xor edx, edx
mov ecx, eax
sub edx, dword [esi]
push edx
call fcn.00462cb0
push 0x4e2f45
push edi
call fcn.0045e430
add esp, 8
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.00412d80
add esp, 8
push 0x4e3398
push eax
call fcn.0045e430
add esp, 8
mov ecx, eax
push ebx
call fcn.00462cb0
push 0x4e339a
push eax
call fcn.0045e430
add esp, 8
lea eax, [esp + 0x68]
lea ecx, [esi + 0xc]
push eax
call fcn.0045ee60
mov eax, dword [esp + 0x78]
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x7c]
cmp eax, 0x10
jb 0x40b301
mov ecx, dword [esp + 0x68]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x40b2f7
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40b319
add eax, 0x24
mov ecx, edx
mov esi, eax
push esi
push ecx
call fcn.0049a588
add esp, 8
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.0049a81b
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004a49d8
int3