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

Disassembly:
push 0xffffffffffffffff
push 0x4fc8e1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54a020]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x46ec40
mov eax, dword [esi]
cmp byte [eax], 0
je 0x46ec40
cmp byte [esp + 0x90], 0
je 0x46e9d6
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call fcn.0046e670
jmp 0x46e9e0
lea edx, [esp + 0x54]
push edx
call fcn.0046e6b0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x3c]
call fcn.0047be80
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 2
call fcn.0047b880
fild dword [esp + 0x34]
mov eax, dword [esp + 0x34]
test eax, eax
mov byte [esp + 0x80], 3
jge 0x46ea1c
fadd qword [0x53c410]
fmul qword [0x50c9e8]
fnstcw word [esp + 0x90]
movzx eax, word [esp + 0x90]
or eax, 0xc00
mov dword [esp + 0x8c], eax
fldcw word [esp + 0x8c]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
fldcw word [esp + 0x94]
call fcn.0047b3c0
lea ecx, [esp + 0x48]
xor esi, esi
call fcn.0047b880
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 4
mov byte [esp + 0x90], 0
call fcn.0047b880
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add edx, edi
xor bl, bl
cmp edi, edx
mov byte [esp + 0x80], 5
je 0x46eb7d
lea ecx, [ecx]
mov eax, esi
sub eax, 0
je 0x46eb4f
sub eax, 1
jne 0x46eb68
mov al, byte [edi]
cmp al, 0x51
je 0x46eb15
cmp al, 0x71
je 0x46eae1
push 0x25
push 1
lea ecx, [esp + 0x2c]
call fcn.0047c020
movzx eax, byte [edi]
push eax
push 1
lea ecx, [esp + 0x2c]
call fcn.0047c020
xor esi, esi
jmp 0x46eb68
cmp byte [esp + 0x90], 0
jne 0x46eaff
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.0046e8d0
mov byte [esp + 0x90], 1
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x30]
call fcn.0047bef0
xor esi, esi
jmp 0x46eb68
test bl, bl
jne 0x46eb39
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.0046e8d0
push 0xffffffffffffffff
push 0
push 0x55dae0
lea ecx, [esp + 0x48]
call fcn.0047bef0
mov bl, 1
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x30]
call fcn.0047bef0
xor esi, esi
jmp 0x46eb68
mov al, byte [edi]
cmp al, 0x25
jne 0x46eb5c
mov esi, 1
jmp 0x46eb68
push eax
push 1
lea ecx, [esp + 0x2c]
call fcn.0047c020
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add edi, 1
add edx, eax
cmp edi, edx
jne 0x46eaa0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call fcn.0047b2a0
mov edi, dword [esp + 0x34]
add edi, 1
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebp, dword [sym.imp.MSVCR80.dll_strftime]
mov ebx, dword [sym.imp.MSVCR80.dll_realloc]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x46ebb7
mov eax, 0x533e66
lea edx, [esp + 0x54]
push edx
push eax
push edi
push esi
call ebp
add esp, 0x10
test eax, eax
jne 0x46ebd3
add edi, edi
push edi
push esi
call ebx
add esp, 8
jmp 0x46eba8
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.0047bb00
push esi
call dword [sym.imp.MSVCR80.dll_free]
mov esi, dword [esp + 0x8c]
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0047be80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x80], 4
call fcn.0047b260
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 3
call fcn.0047b260
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 2
call fcn.0047b260
lea ecx, [esp + 0x30]
jmp 0x46ec70
lea ecx, [esp + 0x18]
call fcn.0047b880
mov esi, dword [esp + 0x88]
push 0xffffffffffffffff
push 0
mov edi, 1
push eax
mov ecx, esi
mov dword [esp + 0x8c], edi
call fcn.0047be80
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0
call fcn.0047b260
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc