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

Disassembly:
sub esp, 0x58
push ebx
lea ecx, [esp + 0xc]
push ebp
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x64]
or ebp, 0xffffffff
cmp ecx, ebx
push edi
mov dword [esp + 0xc], ebx
mov edi, eax
je 0x10054922
cmp eax, ebx
je 0x10054922
push esi
push 0x74
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10054856
push ebx
push ebx
push ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x44], ebx
mov dword [esi], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebp
call fcn.10056a20
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x78]
add esp, 0xc
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10054770
sub eax, edx
inc eax
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x54], eax
je 0x10054851
mov edx, dword [esp + 0x6c]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x10054793
mov byte [esi + 0x5c], bl
mov cl, 0x72
cmp byte [edi], cl
jne 0x100547a9
mov byte [esi + 0x5c], cl
mov al, byte [edi]
cmp al, 0x77
je 0x100547b3
cmp al, 0x61
jne 0x100547b7
mov byte [esi + 0x5c], 0x77
mov al, byte [edi]
cmp al, 0x30
jl 0x100547c9
cmp al, 0x39
jg 0x100547c9
movsx ebp, al
sub ebp, 0x30
jmp 0x100547fe
cmp al, 0x66
jne 0x100547d7
mov dword [esp + 0x10], 1
jmp 0x100547fe
cmp al, 0x68
jne 0x100547e5
mov dword [esp + 0x10], 2
jmp 0x100547fe
cmp al, 0x52
jne 0x100547f3
mov dword [esp + 0x10], 3
jmp 0x100547fe
mov edx, dword [esp + 0x14]
mov byte [edx], al
inc edx
mov dword [esp + 0x14], edx
inc edi
cmp al, bl
je 0x1005480f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x68]
cmp eax, edx
jne 0x100547a2
mov al, byte [esi + 0x5c]
cmp al, bl
je 0x10054851
cmp al, 0x77
jne 0x10054860
mov eax, dword [esp + 0x10]
push 0x38
push 0x10064cb0
push eax
push 8
push 0xfffffffffffffff1
push 8
push ebp
push esi
call fcn.10056500
push 0x4000
mov edi, eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 0x24
cmp edi, ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jne 0x10054851
cmp eax, ebx
jne 0x1005488b
call fcn.10054420
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
push 0x4000
call dword [sym.imp.MSVCR80.dll_malloc]
push 0x38
push 0x10064cb0
push 0xfffffffffffffff1
push esi
mov dword [esi + 0x44], eax
mov dword [esi], eax
call fcn.10056aa0
add esp, 0x14
test eax, eax
jne 0x10054851
cmp dword [esi + 0x44], ebx
je 0x10054851
mov dword [esi + 0x10], 0x4000
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], ebx
mov eax, dword [esp + 0x70]
cmp eax, ebx
lea ecx, [esp + 0x18]
push ecx
jge 0x100548b4
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.MSVCR80.dll_fopen]
jmp 0x100548bb
push eax
call dword [sym.imp.MSVCR80.dll__fdopen]
add esp, 8
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x10054851
cmp byte [esi + 0x5c], 0x77
jne 0x100548fc
push 0xb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 8
push 0x8b
push 0x1f
push str._c_c_c_c_c_c_c_c_c_c
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x30
mov dword [esi + 0x60], 0xa
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, esi
call fcn.100542c0
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCR80.dll_ftell]
mov ecx, dword [esi + 4]
add esp, 4
sub eax, ecx
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x58
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret