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

Disassembly:
mov eax, 0x2ea0
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x2e9c], eax
mov eax, dword [esp + 0x2ea8]
push ebx
push ebp
mov dword [esp + 0x24], edx
or edx, 0xffffffff
push esi
mov esi, dword [esp + 0x2eb0]
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x2f]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2ec8]
mov dword [esp + 0x14], edx
xor edx, edx
cmp eax, ebx
setne dl
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x2ecc]
mov byte [ecx], bl
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 4]
xor eax, eax
mov edi, 0x3e9
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x4a0], eax
mov dword [esi + 0x1f], ecx
lea ebp, [ebx + 1]
cmp dword [esi + 0x37], edi
jne 0x51df41
push ebp
cmp dword [esi + 0x6d], ebp
jne 0x51df24
push esi
xor ecx, ecx
call fcn.0051b720
add esp, 8
jmp 0x51df2e
mov ecx, esi
call fcn.00518630
add esp, 4
mov dword [esi + 0x50], eax
cmp eax, ebx
jne 0x51df3a
cmp dword [esi + 0x37], edi
je 0x51df11
mov eax, dword [esp + 0x4a0]
cmp byte [esi + 0x54], bl
je 0x51df8a
cmp dword [esi + 0x37], 0x3e8
je 0x51df5b
mov dword [esi + 0x50], 0x4c36
jmp 0x51efe3
push ebp
cmp dword [esi + 0x6d], ebp
jne 0x51df6e
push esi
xor ecx, ecx
call fcn.0051b720
add esp, 8
jmp 0x51df78
mov ecx, esi
call fcn.00518630
add esp, 4
mov dword [esi + 0x50], eax
cmp eax, ebx
jne 0x51f094
mov eax, dword [esp + 0x4a0]
cmp dword [esi + 0x37], 0x3ed
jne 0x51df9e
mov edx, dword [esi + 0x4c]
mov dword [esi + 0x50], edx
jmp 0x51f094
xor ebp, ebp
cmp dword [esp + 0x2ebc], ebx
mov dword [esp + 0x14], ebp
jle 0x51f041
mov edx, dword [esp + 0x58]
lea ecx, [ebp + ebp*2]
mov dword [esp + ebp*4 + 0x8c], ebx
lea ebx, [edx + ecx*2]
movzx ecx, word [ebx]
mov edx, 0xd
mov dword [esp + 0x1c], ebx
cmp dx, cx
je 0x51dfe1
cmp dword [esi + 0x37], 0x405
je 0x51ef67
mov edx, dword [esi + 0x37]
cmp edx, 0x3eb
je 0x51e01e
cmp edx, 0x3ec
je 0x51e026
cmp edx, 0x405
je 0x51e01e
mov ecx, dword [esp + 0x2ebc]
sub ecx, dword [esp + 0x2ec0]
cmp ebp, ecx
jge 0x51ef4e
mov dword [esi + 0x50], 0x4c2c
jmp 0x51efe3
cmp edx, 0x3ec
jne 0x51e043
mov edx, dword [esp + 0x2ec4]
cmp byte [edx + ebp], 0
jne 0x51ef1d
mov dword [esi + 0x50], 0x4c33
jmp 0x51efe3
movsx edi, cx
lea ecx, [edi - 1]
mov dword [esp + 0x28], edi
cmp ecx, 0x1e
ja case.0x51e05d.10
movzx ecx, byte [ecx + 0x51f298]
jmp dword [ecx*4 + 0x51f260]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00575c10
add esp, 0xc
test eax, eax
je 0x51ef79
mov edx, dword [esp + 0x20]
cmp byte [edx], 0
jne 0x51ef79
push eax
call fcn.00575780
push 5
mov edi, eax
call fcn.00575780
add esp, 8
cmp edi, eax
jg 0x51ef70
mov eax, dword [esp + 0x4a0]
mov cl, byte [esp + 0x4c]
shl eax, 5
mov byte [esp + eax + 0x4a4], cl
mov eax, dword [esp + 0x4a0]
mov edx, eax
shl edx, 5
lea ecx, [esp + edx + 0x4a4]
inc eax
mov dword [esp + ebp*4 + 0x8c], ecx
mov dword [esp + 0x4a0], eax
jmp 0x51ef1d
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00575c10
add esp, 0xc
test eax, eax
je 0x51ef79
mov edx, dword [esp + 0x20]
cmp byte [edx], 0
jne 0x51ef79
push eax
call fcn.00575780
push 6
mov edi, eax
call fcn.00575780
add esp, 8
cmp edi, eax
jg 0x51ef70
mov eax, dword [esp + 0x4a0]
mov cx, word [esp + 0x4c]
shl eax, 5
mov word [esp + eax + 0x4a4], cx
jmp 0x51e0bf
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00575c10
add esp, 0xc
test eax, eax
je 0x51ef79
mov edx, dword [esp + 0x20]
cmp byte [edx], 0
jne 0x51ef79
push eax
call fcn.00575780
push 1
mov edi, eax
call fcn.00575780
add esp, 8
cmp edi, eax
jg 0x51ef70
mov eax, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x4c]
shl eax, 5
mov dword [esp + eax + 0x4a4], ecx
jmp 0x51e0bf
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00575c10
add esp, 0xc
test eax, eax
je 0x51ef79
mov edx, dword [esp + 0x20]
cmp byte [edx], 0
jne 0x51ef79
push eax
call fcn.00575780
push 0x1f
mov edi, eax
call fcn.00575780
add esp, 8
cmp edi, eax
jg 0x51ef70
mov eax, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
shl eax, 5
mov dword [esp + eax + 0x4a4], ecx
mov dword [esp + eax + 0x4a8], edx
mov eax, dword [esp + 0x4a0]
mov ecx, eax
shl ecx, 5
lea edx, [esp + ecx + 0x4a4]
inc eax
mov dword [esp + ebp*4 + 0x8c], edx
mov dword [esp + 0x4a0], eax
jmp 0x51ef1d
mov ecx, dword [esp + 0x18]
shl eax, 5
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
lea edi, [esp + eax + 0x4a4]
call fcn.00514ed0
mov ebp, dword [esp + 0x1c]
push 3
mov dword [esp + 0x8c], ebp
call fcn.004a8760
push 4
mov dword [esp + 0x24], eax
call fcn.004a8660
push 0
lea edx, [esp + 0x90]
push 1
push edx
call fcn.004aa4b0
add esp, 0x14
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f1a2
mov al, byte [ebp]
test al, al
js 0x51e2d9
movsx eax, al
push eax
call dword [sym.imp.MSVCR90.dll_isdigit]
add esp, 4
test eax, eax
je 0x51e2d9
movsx edx, byte [ebx + 3]
push 0
push 0xc7
push 0
lea ecx, [esp + 0x4c]
push ecx
push edx
push 8
push 0
push edi
mov dword [esp + 0x60], 8
call fcn.004aab10
add esp, 0x20
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
jmp 0x51e304
lea eax, [esp + 0x20]
push eax
push 0
push 0
push edi
push 8
call fcn.004abe60
add esp, 0x14
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov ecx, dword [esp + 0x20]
cmp byte [ecx], al
jne 0x51ef82
mov edx, dword [esp + 0x1c]
push edx
call fcn.004a8660
push ebx
push edi
call fcn.00576090
add esp, 0xc
test eax, eax
jne 0x51e33b
movsx eax, byte [ebx + 3]
movsx ecx, byte [ebx + 2]
push eax
push ecx
push edi
push edi
call fcn.0057c190
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov edx, dword [esp + 0x14]
inc dword [esp + 0x4a0]
mov dword [esp + edx*4 + 0x8c], edi
mov ebp, edx
jmp 0x51ef1d
shl eax, 5
lea edi, [esp + eax + 0x4a4]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], 1
call fcn.00514ed0
mov ebp, dword [esp + 0x1c]
cmp byte [ebp], 0x2d
jne 0x51e3a2
mov al, byte [ebp + 1]
test al, al
js 0x51e3a2
movsx ecx, al
push ecx
call dword [sym.imp.MSVCR90.dll_isdigit]
add esp, 4
test eax, eax
je 0x51e3a2
mov dword [esp + 0x40], 2
inc ebp
push 3
call fcn.004a8760
push 4
mov dword [esp + 0x30], eax
call fcn.004a8660
push 0
lea edx, [esp + 0x88]
push 1
push edx
mov dword [esp + 0x94], ebp
call fcn.004aa4b0
add esp, 0x14
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f1a2
mov al, byte [ebp]
test al, al
js 0x51e42a
movsx eax, al
push eax
call dword [sym.imp.MSVCR90.dll_isdigit]
add esp, 4
test eax, eax
je 0x51e42a
mov ecx, dword [esp + 0x40]
movsx eax, byte [ebx + 3]
push 0
push 0xc7
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push 9
push edi
push 0
mov dword [esp + 0x3c], 8
call fcn.004aab10
add esp, 0x20
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
jmp 0x51e455
lea ecx, [esp + 0x20]
push ecx
push 0
push edi
push 0
push 9
call fcn.004abe60
add esp, 0x14
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov edx, dword [esp + 0x20]
cmp byte [edx], al
jne 0x51ef8b
mov eax, dword [esp + 0x28]
push eax
call fcn.004a8660
push ebx
push edi
call fcn.00576090
add esp, 0xc
test eax, eax
jne 0x51e48c
movsx ecx, byte [ebx + 3]
movsx edx, byte [ebx + 2]
push ecx
push edx
push edi
push edi
call fcn.0057c240
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov eax, dword [esp + 0x14]
inc dword [esp + 0x4a0]
mov dword [esp + eax*4 + 0x8c], edi
mov ebp, eax
jmp 0x51ef1d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48c]
push ecx
push edx
call fcn.00581c30
add esp, 8
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
lea eax, [esp + 0x48c]
push ebx
push eax
call fcn.00580790
add esp, 8
test eax, eax
je 0x51ef70
cmp byte [ebx + 2], 0
je 0x51e510
mov ecx, dword [esp + 0x4a0]
movsx eax, byte [ebx + 3]
shl ecx, 5
lea edx, [esp + ecx + 0x4a4]
push edx
push eax
lea ecx, [esp + 0x494]
push ecx
call fcn.005822b0
add esp, 0xc
jmp 0x51e0bf
mov edx, dword [esp + 0x4a0]
shl edx, 5
lea eax, [esp + edx + 0x4a4]
push eax
lea ecx, [esp + 0x490]
push ecx
call fcn.005808e0
add esp, 8
jmp 0x51e0bf
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x70]
push eax
push str._le_c
push ecx
mov byte [esp + 0x23], 0
call fcn.00571e30
add esp, 0x10
cmp byte [esp + 0x13], 0
jne 0x51efb1
test eax, eax
je 0x51efb1
fld qword [esp + 0x6c]
sub esp, 8
fstp qword [esp]
call fcn.00575de0
add esp, 8
cmp eax, 2
je 0x51ef70
fld qword [esp + 0x6c]
mov edx, dword [esp + 0x4a0]
fstp dword [esp + 0x28]
shl edx, 5
fld dword [esp + 0x28]
fstp dword [esp + edx + 0x4a4]
mov eax, dword [esp + 0x4a0]
mov ecx, eax
shl ecx, 5
lea edx, [esp + ecx + 0x4a4]
inc eax
mov dword [esp + ebp*4 + 0x8c], edx
mov dword [esp + 0x4a0], eax
jmp 0x51ef1d
shl eax, 5
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + eax + 0x4a8]
mov eax, dword [esp + 0x1c]
push edx
push str._le_c
push eax
mov byte [esp + 0x23], 0
call fcn.00571e30
add esp, 0x10
cmp byte [esp + 0x13], 0
jne 0x51efb1
test eax, eax
je 0x51efb1
mov eax, dword [esp + 0x4a0]
mov ecx, eax
shl ecx, 5
lea edx, [esp + ecx + 0x4a4]
inc eax
mov dword [esp + ebp*4 + 0x8c], edx
mov dword [esp + 0x4a0], eax
jmp 0x51ef1d
movsx ebp, word [ebx + 2]
test ebp, ebp
jle 0x51e6a1
mov eax, dword [esi + 0x3f]
cmp eax, ebp
jle 0x51e66f
mov eax, dword [0x5b46ac]
cmp byte [eax + 0x342], 0
je 0x51ef70
cmp edi, 0x1d
jne 0x51ef70
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00576bc0
add esp, 4
cmp eax, ebp
jg 0x51ef70
mov eax, dword [esi + 0x3f]
mov ebp, eax
test ebp, ebp
jle 0x51e6a1
cmp edi, 4
jne 0x51e6a4
mov ebx, eax
cmp ebx, ebp
jge 0x51e697
mov edx, dword [esp + 0x18]
mov edi, ebp
sub edi, ebx
push edi
lea eax, [ebx + edx]
push 0x20
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
add ebx, edi
mov eax, dword [esp + 0x18]
mov byte [ebx + eax], 0
jmp 0x51e6a4
mov ebp, dword [esi + 0x3f]
mov ecx, dword [esp + 0x18]
inc ebp
push ebp
push ecx
call dword [sym.imp.MSVCR90.dll_realloc]
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + edx*4 + 0x8c], eax
test eax, eax
je 0x51efba
push 0xff3c
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [esi + 0x2f], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x51efba
mov ebp, dword [esp + 0x14]
jmp 0x51ef1d
cmp edi, 0xc
jne 0x51e6f9
mov ebp, 0x4c3d
jmp 0x51e70b
mov ebp, edi
sub ebp, 0xe
neg ebp
sbb ebp, ebp
and ebp, 3
add ebp, 0x4c40
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
push 0x7fa0
call edi
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + ecx*4 + 0x8c], eax
test eax, eax
je 0x51efba
push 0x7fa0
call edi
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x51efba
mov edi, dword [esi + 0x2f]
mov al, byte [edi + 1]
mov bl, byte [edi]
test al, al
js 0x51e775
movsx edx, al
push edx
call dword [sym.imp.MSVCR90.dll_isupper]
add esp, 4
test eax, eax
je 0x51e775
movsx eax, byte [edi + 1]
push eax
call dword [sym.imp.MSVCR90.dll_tolower]
add esp, 4
jmp 0x51e778
mov al, byte [edi + 1]
cmp bl, 0x30
jne 0x51efc6
cmp al, 0x78
jne 0x51e78c
mov ebx, 0xc
jmp 0x51e7a8
cmp al, 0x62
je 0x51e7a3
cmp al, 0x75
jne 0x51efc6
cmp dword [esp + 0x28], 0x1e
jne 0x51efc6
mov ebx, 0x1e
add edi, 2
mov eax, ebx
sub eax, 0xc
push edi
je 0x51e7dc
sub eax, 2
je 0x51e7ca
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00584310
add esp, 8
cmp byte [eax], 0
jmp 0x51e7ee
mov edx, dword [esp + 0x28]
push edx
call fcn.005842e0
add esp, 8
cmp byte [eax], 0
jmp 0x51e7ee
mov eax, dword [esp + 0x28]
push eax
call fcn.00576ce0
add esp, 8
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51efc6
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push 0
push ecx
push edx
push eax
push ebx
call fcn.00579be0
add esp, 0x14
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov ebp, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x24], 0
jmp 0x51ef1d
mov edi, dword [esp + 0x18]
push 0x5a90cc
push edi
call fcn.00576c40
add esp, 8
test eax, eax
jne 0x51e887
mov edx, dword [esp + 0x4a0]
shl edx, 5
mov byte [esp + edx + 0x4a4], 1
mov eax, dword [esp + 0x4a0]
mov ecx, eax
shl ecx, 5
lea edx, [esp + ecx + 0x4a4]
inc eax
mov dword [esp + ebp*4 + 0x8c], edx
mov dword [esp + 0x4a0], eax
jmp 0x51ef1d
push 0x5a90c4
push edi
call fcn.00576c40
add esp, 8
test eax, eax
jne 0x51f002
mov eax, dword [esp + 0x4a0]
shl eax, 5
mov byte [esp + eax + 0x4a4], 0
mov eax, dword [esp + 0x4a0]
mov ecx, eax
shl ecx, 5
lea edx, [esp + ecx + 0x4a4]
inc eax
mov dword [esp + ebp*4 + 0x8c], edx
mov dword [esp + 0x4a0], eax
jmp 0x51ef1d
mov ecx, eax
inc eax
shl ecx, 5
mov dword [esp + 0x4a0], eax
mov eax, dword [esp + 0x2ec8]
sub eax, 0
lea ebx, [esp + ecx + 0x4a4]
mov dword [esp + ebp*4 + 0x8c], ebx
je 0x51ec0c
sub eax, 1
je 0x51e9a8
sub eax, 4
jne case.0x51e05d.10
lea edx, [esp + 0x24a4]
mov dword [ebx], eax
mov byte [ebx + 0x12], al
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x2f]
push edx
push eax
mov dword [ebx + 4], 0xffffffff
call fcn.0056b400
mov edi, dword [esp + 0x34]
add esp, 8
lea ecx, [esp + 0x25a8]
push ecx
lea edx, [esp + 0x24a8]
push edx
mov eax, ecx
push 0
push eax
lea ecx, [edi + 0x201]
push ecx
call fcn.0056b010
add esp, 8
push eax
call fcn.0056ae90
add edi, 0x100
push edi
call fcn.0056af80
push eax
lea edx, [esp + 0x24bc]
push str.BFILE_s
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
push ebx
add ebx, 0x10
push ebx
push 0
lea eax, [esp + 0x25d4]
push eax
lea ecx, [esp + 0x24d4]
push ecx
call fcn.00424a70
add esp, 0x34
jmp 0x51ef1d
mov eax, dword [esi + 0x1b]
test eax, eax
jne 0x51ea07
cmp dword [esi + 0x47], eax
jne 0x51e9c8
mov al, 1
mov ecx, esi
call fcn.0051d420
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x64]
push edx
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebx + 4]
push ecx
push ebx
push str._ld_ld_ld_d
push edi
call fcn.00571f80
add esp, 0x18
cmp eax, 4
jne 0x51f017
mov dx, word [esp + 0x64]
mov byte [ebx + 9], 1
mov byte [ebx + 8], 1
mov word [ebx + 0x10], dx
jmp 0x51ef1d
push 0
push 0x2a
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x1720]
push ecx
mov dword [ebx], 0
call fcn.0055ace0
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
lea ecx, [esp + 0x30]
push ecx
xor edx, edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
push edx
add eax, 0xb12
push 4
push eax
mov word [esp + 0x88], dx
mov dword [esp + 0x38], eax
call fcn.004238c0
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov ecx, dword [esp + 0x30]
lea edx, [ebx + 0xc]
push edx
push 3
lea eax, [esp + 0x7c]
push eax
push ecx
call fcn.00423900
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
xor edi, edi
lea esp, [esp]
xor ebp, ebp
cmp dword [esi + 0x3f], ebp
jle 0x51eb16
jmp 0x51eaa0
lea edx, [edi + 0xa]
cmp edx, 0x400
jbe 0x51ead9
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esp + 0x2ab4]
push ecx
push edx
call fcn.00423e80
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov eax, dword [esp + 0x44]
add dword [ebx], eax
xor edi, edi
mov eax, dword [esi + 0x2f]
lea ecx, [esp + edi + 0x2aac]
push ecx
movsx ecx, byte [eax + ebp]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x1720]
push ecx
push eax
call fcn.0055ad50
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
add edi, dword [esp + 0x54]
inc ebp
cmp ebp, dword [esi + 0x3f]
jl 0x51eaa0
cmp dword [esi + 0x37], 0x3eb
je 0x51eb38
mov al, 1
mov ecx, esi
call fcn.0051d420
mov dword [esi + 0x50], eax
test eax, eax
je 0x51ea90
jmp 0x51f094
lea ecx, [edi + 0xa]
cmp ecx, 0x400
jbe 0x51eb71
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x2ab4]
push eax
push ecx
call fcn.00423e80
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov edx, dword [esp + 0x44]
add dword [ebx], edx
xor edi, edi
mov edx, dword [esp + 0x2c]
lea eax, [esp + edi + 0x2aac]
push eax
mov eax, dword [edx + 0x1720]
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.0055adb0
add esp, 0xc
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
add edi, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x44]
push ecx
push edi
lea edx, [esp + 0x2ab4]
push edx
push eax
call fcn.00423e80
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004240d0
add esp, 4
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
add dword [ebx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebp, dword [esp + 0x14]
mov byte [ebx + 9], 1
mov byte [ebx + 8], 1
mov dword [esp + 0x30], 0xffffffff
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
jmp 0x51ef1d
cmp dword [esi + 0x1b], 0
jne 0x51eef0
mov eax, dword [esi + 0x2f]
lea edx, [esp + 0x26ac]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x51ec22
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 0x171e]
cmp ax, 1
jl 0x51ed12
cmp dword [esi + 0x47], 0
jne 0x51ecb7
cmp byte [esi + 0x4b], cl
je 0x51ecb7
mov al, 1
mov ecx, esi
call fcn.0051d420
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov eax, dword [esi + 0x33]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.0056c080
add esp, 0xc
test eax, eax
je 0x51ecab
mov ecx, dword [esi + 0x43]
mov edx, dword [esi + 0x33]
cmp byte [ecx + edx - 1], 0x3e
jne 0x51ecab
cmp eax, 1
jne 0x51ed14
lea ecx, [esp + 0x26ac]
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x51eca0
sub ecx, edi
je 0x51ed14
mov dword [esi + 0x50], 0x4c41
jmp 0x51efe3
cmp ax, 1
jl 0x51ed12
cmp byte [esi + 0x4b], 0
jne 0x51ed12
lea eax, [esp + 0x26ac]
push 0x3c
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x51ed12
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
push edi
call fcn.0056c080
add esp, 0xc
test eax, eax
jle 0x51ecf6
mov byte [edi], 0
cmp eax, 1
jne 0x51ed14
lea ecx, [esp + 0x26ac]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x51ed05
sub ecx, edi
jne 0x51ecab
jmp 0x51ed14
xor eax, eax
mov dl, byte [esp + 0x26ac]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
test dl, dl
jne 0x51ed3e
mov ecx, dword [edi + ebp*4 + 0x131e]
test ecx, ecx
je 0x51f02f
cmp byte [ecx], dl
je 0x51f02f
sub eax, 0
je 0x51ee89
sub eax, 1
je 0x51ee24
sub eax, 1
jne 0x51eedc
test dl, dl
je 0x51edaa
cmp dword [edi + ebp*4 + 0x131e], eax
jne 0x51ed8a
push 0x401
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [edi + ebp*4 + 0x131e], eax
test eax, eax
je 0x51f038
mov dl, byte [esp + 0x26ac]
test dl, dl
je 0x51edaa
mov edx, dword [edi + ebp*4 + 0x131e]
lea ecx, [esp + 0x26ac]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x51eda0
cmp dword [edi + 0x309], 1
jle 0x51edd1
mov eax, dword [edi + ebp*4 + 0x131e]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push str.__lu:_lu__s_n
push eax
jmp 0x51eded
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x26ac]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push str.__lu:_lu__s_n
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
add esp, 0x14
lea edx, [edi + ebp*4 + 0xf1e]
mov dword [edx], eax
cmp ecx, 0xffffffff
jne 0x51ee1b
mov edx, dword [edi + ebp*4 + 0x131e]
mov byte [edx], 0
jmp 0x51eedc
add eax, ecx
mov dword [edx], eax
jmp 0x51eedc
cmp dword [edi + 0x309], 1
mov ecx, dword [esp + 0x38]
jle 0x51ee57
mov eax, dword [edi + ebp*4 + 0x131e]
mov edx, dword [edi + ebp*4 + 0xf1e]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push str.__ld:_ld__s_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
jmp 0x51ee6b
mov edx, dword [esp + 0x3c]
push ecx
push str.__ld__n
push edx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
jne 0x51ee80
mov eax, dword [edi + ebp*4 + 0x131e]
mov byte [eax], 0
jmp 0x51eedc
add dword [edi + ebp*4 + 0xf1e], eax
jmp 0x51eedc
mov eax, dword [edi + ebp*4 + 0x131e]
test eax, eax
je 0x51ee9e
mov byte [eax], 0
mov dl, byte [esp + 0x26ac]
cmp word [edi + 0x171e], 1
jl 0x51eec1
cmp dl, 0x3c
jne 0x51eec1
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x26ac]
push ecx
push str._0:_1__s_n
push edx
jmp 0x51eed3
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x26ac]
push eax
push 0x5a8500
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov ebp, dword [esp + 0x14]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp dword [esi + 0x37], 0x405
jne 0x51ef1d
lea esp, [esp]
mov al, 1
mov ecx, esi
call fcn.0051d420
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
cmp dword [esi + 0x37], 0x405
je 0x51ef00
cmp dword [esi + 0x6d], 1
push 1
jne 0x51ef32
push esi
xor ecx, ecx
call fcn.0051b720
add esp, 8
jmp 0x51ef3c
mov ecx, esi
call fcn.00518630
add esp, 4
mov dword [esi + 0x50], eax
test eax, eax
jne 0x51f094
mov eax, dword [esp + 0x4a0]
inc ebp
cmp ebp, dword [esp + 0x2ebc]
mov dword [esp + 0x14], ebp
jge 0x51f041
xor ebx, ebx
jmp 0x51dfb1
mov dword [esi + 0x50], 8
jmp 0x51efe3
mov dword [esi + 0x50], 0x4c34
jmp 0x51efe3
mov dword [esi + 0x50], 0x4c2d
jmp 0x51efe3
mov dword [esi + 0x50], 0x520c
jmp 0x51ef92
mov dword [esi + 0x50], 0x520d
mov edx, dword [esp + 0x18]
mov esi, dword [esi + 0x50]
push edx
push 0x7e6
push esi
mov dword [esp + 0x40], esi
call fcn.00406f10
add esp, 0xc
jmp 0x51f1c8
mov dword [esi + 0x50], 0x4c2e
jmp 0x51efe3
mov dword [esi + 0x50], 6
jmp 0x51f13b
mov eax, dword [esp + 0x24]
mov dword [esi + 0x50], ebp
test eax, eax
je 0x51efe3
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x24], 0
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x17]
je 0x51f094
push 0x7e6
push eax
call fcn.00406f10
add esp, 8
jmp 0x51f094
mov dword [esi + 0x50], 0x4c31
jmp 0x51efe3
mov dword [esi + 0x50], 2
jmp 0x51f13b
push edi
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
neg eax
sbb eax, eax
add eax, 0x4c3f
mov dword [esi + 0x50], eax
jmp 0x51efe3
mov dword [esi + 0x50], 0x4c42
jmp 0x51efe3
mov dword [esi + 0x50], 6
jmp 0x51efe3
mov eax, dword [esi + 0x37]
dec ebp
mov dword [esp + 0x14], ebp
cmp eax, 0x3ea
je 0x51f060
cmp eax, 0x3e9
je 0x51f060
mov dword [esi + 0x50], 0x4c2f
jmp 0x51efe3
cmp byte [esi + 0x54], 0
je 0x51f166
cmp dword [esi + 0x6d], 1
push 1
jne 0x51f07f
push esi
xor ecx, ecx
call fcn.0051b720
add esp, 8
jmp 0x51f089
mov ecx, esi
call fcn.00518630
add esp, 4
mov dword [esi + 0x50], eax
test eax, eax
je 0x51f166
mov eax, dword [esi + 0x50]
mov edi, 1
add dword [esi + 0x79], edi
cmp eax, dword [esi + 0x17]
je 0x51f0d5
push str.File
push str.Attr
push str.Byte
push str.Char
push str.Line
push 0x7e6
push 0x4c37
call fcn.00406f10
mov eax, dword [esi + 0x50]
add esp, 0x1c
mov dword [esi + 0x17], eax
mov ecx, dword [esi]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x27]
inc edx
push edx
mov edx, dword [esi + 0x23]
add ecx, edi
push ecx
add edx, edi
xor ecx, ecx
cmp eax, 0x4c2c
sete cl
push edx
mov edx, dword [esi + 4]
sub edx, ecx
push edx
push 0x7e6
push 0x4c44
call fcn.00406f10
add esp, 0x1c
cmp dword [esp + 0x60], 0
jne 0x51f15c
mov eax, dword [esi + 0xc]
cmp dword [esi + 0x6d], edi
jne 0x51f12e
push eax
push 0xffffffffffffffff
push 1
xor ecx, ecx
mov edi, esi
call fcn.0051cb70
add esp, 0xc
jmp 0x51f137
push edi
call fcn.0051dc50
add esp, 4
test eax, eax
je 0x51f152
mov esi, dword [esi + 0x50]
push 0x7e6
push esi
mov dword [esp + 0x3c], esi
call fcn.00406f10
add esp, 8
jmp 0x51f1c8
mov dword [esp + 0x34], 0
jmp 0x51f1c8
mov dword [esp + 0x34], 5
jmp 0x51f1c8
mov ecx, dword [esp + 0x5c]
mov eax, 1
sub eax, dword [ecx]
lea edx, [esp + 0x8c]
mov dword [ecx], eax
imul eax, eax, 0x7fa0
lea eax, [eax + ecx + 4]
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x2ec0]
push ecx
push edx
push eax
call fcn.005789e0
add esp, 0x10
mov dword [esi + 0x50], eax
test eax, eax
je 0x51f1ba
mov ecx, dword [esi + 0x50]
push 0x7e6
push 0
mov dword [esp + 0x3c], ecx
call fcn.00406f10
add esp, 8
jmp 0x51f1c8
mov edx, dword [esp + 0x68]
mov byte [edx], 1
mov dword [esi + 0x50], 0
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x51f1da
push eax
call fcn.004240d0
add esp, 4
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x51f1ee
push eax
call ebp
add esp, 4
mov ebx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jl 0x51f240
mov edi, dword [esp + 0x58]
lea esp, [esp]
movzx eax, word [edi]
cmp ax, 4
je 0x51f227
cmp ax, 0x1d
je 0x51f227
cmp ax, 0xc
je 0x51f227
cmp ax, 0xe
je 0x51f227
cmp ax, 0x1e
je 0x51f227
cmp ax, 0x1c
jne 0x51f238
mov eax, dword [esp + esi*4 + 0x8c]
test eax, eax
je 0x51f238
push eax
call ebp
add esp, 4
inc esi
add edi, 6
cmp esi, ebx
jle 0x51f200
mov ecx, dword [esp + 0x2eac]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x2ea0
ret