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

Disassembly:
push 0xffffffffffffffff
push 0x100598a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
movzx eax, byte [edi]
xor esi, esi
sub eax, 0xe
mov dword [esp + 0x28], ebp
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], esi
je 0x1004ea5b
sub eax, 1
je 0x1004ea37
sub eax, 1
je 0x1004ea0a
push 0x14000040
lea ecx, [esp + 0x54]
call fcn.10049a20
mov ecx, dword [ebp + 4]
push eax
mov dword [esp + 0x84], esi
call ecx
mov ecx, dword [esp + 0x54]
add esp, 4
cmp ecx, esi
mov dword [esp + 0x80], 0xffffffff
je 0x1004ea6e
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 1
call eax
jmp 0x1004ea6e
mov edx, dword [ebp]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
call edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.10047f60
add esp, 0x10
jmp 0x1004ea6e
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [edi + 8]
lea eax, [esp + 0x38]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.10047ed0
add esp, 0x14
jmp 0x1004ea6e
mov edx, dword [edi + 8]
mov eax, dword [edx]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.10047d10
add esp, 8
mov al, byte [edi]
cmp al, 0xf
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
lea esi, [esp + 0x54]
je 0x1004eae8
cmp al, 0xe
je 0x1004eaaf
cmp byte [esp + 0x13], 0
je 0x1004eaaf
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx*4 + 0x10072a80]
add ecx, 0x76c
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push str._d__.3s__d
mov edx, esi
push edx
jmp 0x1004ead1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push eax
add ecx, 1
push ecx
add edx, 0x76c
push edx
push str._4.4d__2.2d__2.2d
lea eax, [esp + 0x64]
push eax
call ebx
add esp, 0x14
cmp byte [esp + 0x54], 0
je 0x1004eae8
lea ecx, [ecx]
add esi, 1
cmp byte [esi], 0
jne 0x1004eae0
mov al, byte [edi]
cmp al, 0x10
jne 0x1004eafb
cmp byte [esp + 0x13], 0
jne 0x1004eafb
mov byte [esi], 0x20
add esi, 1
cmp al, 0xe
je 0x1004eb58
cmp al, 0xf
je 0x1004eba1
cmp byte [esp + 0x13], 0
je 0x1004eba1
mov eax, dword [esp + 0x34]
test eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
jne 0x1004eb32
test ecx, ecx
jne 0x1004eb32
test edx, edx
jne 0x1004eb32
test ebp, ebp
je 0x1004eb41
push ebp
push edx
push ecx
push eax
push str.__d:_.2d:_.2d._.4d
push esi
call ebx
add esp, 0x18
mov ebp, dword [esp + 0x28]
cmp byte [esi], 0
je 0x1004eb58
lea ebx, [ebx]
add esi, 1
cmp byte [esi], 0
jne 0x1004eb50
xor eax, eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x54]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, edx
sub si, ax
cmp byte [edi], 0x10
mov dword [esp + 0x20], edx
mov byte [esp + 0x18], 1
mov word [esp + 0x1c], 2
mov word [esp + 0x1a], si
jne 0x1004ebf0
cmp byte [esp + 0x13], 0
je 0x1004ebf0
mov edx, dword [esp + 0x24]
mov al, byte [edx]
cmp al, 2
jne 0x1004ebc2
mov ecx, 1
jmp 0x1004ebd2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push str._2.2d:_2.2d:_2.2d._4.4d
push esi
call ebx
add esp, 0x18
jmp 0x1004eb45
xor ecx, ecx
cmp al, 3
setne cl
sub ecx, 1
and ecx, 2
movzx ecx, cx
movzx eax, word [edx + 2]
movzx ecx, cx
sub eax, ecx
movzx ecx, si
cmp ecx, eax
jge 0x1004ebe9
mov word [esp + 0x1a], cx
jmp 0x1004ebf4
mov word [esp + 0x1a], ax
jmp 0x1004ebf4
mov edx, dword [esp + 0x24]
push ebp
push edx
lea edx, [esp + 0x20]
push edx
call fcn.10051990
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10052756
add esp, 0x74
ret