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

Disassembly:
push 0xffffffffffffffff
push 0x5a484a
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x29c]
mov cx, word [eax + 0x2aa]
imul cx, word [eax + 0x2a8]
movzx ebx, cx
xor ebp, ebp
xor esi, esi
cmp ebx, ebp
mov dword [esp + 0x2c], edi
jle 0x51b928
mov edx, dword [edi + 0x29c]
mov eax, dword [edx + 0x2a4]
cmp dword [eax + esi*8], ebp
je 0x51b923
mov ecx, edx
mov edx, dword [ecx + 0x2a4]
mov eax, dword [edx + esi*8]
push eax
call fcn.00429720
inc esi
cmp esi, ebx
jl 0x51b901
lea ecx, [esp + 0x94]
call fcn.00429880
lea ecx, [esp + 0x74]
mov dword [esp + 0x160], ebp
call fcn.00429880
push ebp
lea ecx, [esp + 0x78]
push ecx
push 0x3f
mov ecx, 0x69d200
mov byte [esp + 0x16c], 1
call fcn.0042f6b0
cmp dword [edi + 0xa0c], ebp
mov dword [esp + 0x28], ebp
jle 0x51bfd1
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
lea ebp, [edi + 0x6f0]
lea edx, [edi + 0x3e4]
add edi, 0x2a0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
jmp 0x51b99c
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, 8
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x51b9c6
add edx, 0xfffffffc
mov dword [esp + 0x14], edx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp]
cmp eax, ecx
je 0x51b9d8
add ebp, 0xfffffffc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x54]
push edx
mov ecx, 0x69fe70
call fcn.004ae980
mov ebp, eax
test ebp, ebp
je 0x51c02c
push 0x384
call fcn.00599902
add esp, 4
mov dword [esp + 0x70], eax
mov byte [esp + 0x160], 2
test eax, eax
je 0x51ba1e
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.004a8320
mov esi, eax
jmp 0x51ba20
xor esi, esi
mov edx, dword [esp + 0x28]
movzx ecx, word [ebp]
mov edi, dword [esi]
add edx, 0x111d4
push edx
lea eax, [esp + 0x98]
push eax
push ecx
mov ecx, 0x69fe70
mov byte [esp + 0x16c], 1
add edi, 0x10
call fcn.004b1f10
mov edx, dword [edi]
push eax
push 0x28
push 0x28
push 0
push 0
mov ecx, esi
call edx
movzx eax, word [ebp]
push 0x1e1e1e
mov dword [esi + 0x2a4], eax
lea eax, [esp + 0x78]
push eax
push 0xffffffffffffffff
push 0x5af25f
mov ecx, esi
mov dword [esi + 0x24], 0
call fcn.0043c130
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00525e90
add esp, 4
test eax, 0x100
je 0x51bf83
lea ecx, [esp + 0xb4]
call fcn.00429880
push 0
lea edx, [esp + 0xb8]
push edx
push 0x3f
mov ecx, 0x69d200
mov byte [esp + 0x16c], 3
call fcn.0042f6b0
lea ecx, [esp + 0x30]
call fcn.00429880
push 0
lea eax, [esp + 0x34]
push eax
push 0xdd
mov ecx, 0x69d200
mov byte [esp + 0x16c], 4
call fcn.0042f6b0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x178], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x17c], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x174], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x180], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x188], eax
lea eax, [esi + 0x218]
mov dword [esi + 0x184], edx
mov dword [esi + 0x18c], ecx
mov dword [esi + 0x16c], 1
test eax, eax
je 0x51bb52
push eax
mov ecx, esi
call fcn.0043c0a0
push 0x1e1e1e
lea edx, [esp + 0xb8]
push edx
push 0xffffffffffffffff
push 0x5af25f
mov ecx, esi
call fcn.0043c130
push 0xffff00
lea eax, [ebp + 2]
push eax
mov ecx, esi
call fcn.0043c080
push ebp
push esi
mov ecx, 0x69fe70
call fcn.004a9e00
movzx ecx, word [ebp + 0x24]
push ecx
mov ecx, 0x69fe70
call fcn.004aeab0
mov edi, eax
test edi, edi
je 0x51bbc6
push 0xf0f0f0
push 0x5af25f
mov ecx, esi
call fcn.0043c080
nop
mov edx, dword [edi]
push 0xc8d7aa
push edx
mov ecx, esi
call fcn.0043c080
mov edi, dword [edi + 4]
test edi, edi
jne 0x51bbb0
mov eax, dword [esp + 0x54]
push eax
mov ecx, 0x69fe70
call fcn.004aee20
test eax, eax
je 0x51bf5c
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x51bf5c
movzx eax, word [ebp + 8]
test ax, ax
je 0x51bc2c
movzx ecx, ax
push ecx
push 0x17e
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0xdc]
push 0x5b5eb4
push edx
call ebx
add esp, 0x10
push 0x55fc55
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0043c080
movzx eax, word [ebp + 0xa]
test ax, ax
je 0x51bc6f
movzx ecx, ax
push ecx
push 0x17f
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0xdc]
push 0x5b5eb4
push edx
call ebx
add esp, 0x10
push 0x55fc55
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0043c080
movzx eax, word [ebp + 0xc]
test ax, ax
je 0x51bcb2
movzx ecx, ax
push ecx
push 0x180
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0xdc]
push 0x5b5eb4
push edx
call ebx
add esp, 0x10
push 0x55fc55
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0043c080
movzx eax, word [ebp + 0xe]
test ax, ax
je 0x51bcf5
movzx ecx, ax
push ecx
push 0x181
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0xdc]
push 0x5b5eb4
push edx
call ebx
add esp, 0x10
push 0x55fc55
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0043c080
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x51bd33
push eax
push 0x182
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea ecx, [esp + 0xdc]
push 0x5b5eb4
push ecx
call ebx
add esp, 0x10
push 0x55fc55
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
call fcn.0043c080
movzx eax, word [ebp + 0x14]
test ax, ax
je 0x51bd76
movzx eax, ax
push eax
push 0x183
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea ecx, [esp + 0xdc]
push 0x5b5eb4
push ecx
call ebx
add esp, 0x10
push 0x55fc55
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
call fcn.0043c080
mov eax, dword [ebp + 0x16]
test eax, eax
je 0x51bdb4
push eax
push 0x184
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea eax, [esp + 0xdc]
push 0x5b5eb4
push eax
call ebx
add esp, 0x10
push 0x55fc55
lea ecx, [esp + 0xd8]
push ecx
mov ecx, esi
call fcn.0043c080
fldz
mov edi, 1
movzx eax, di
test ax, ax
jne 0x51bdc9
fst dword [esp + 0x14]
jmp 0x51bdd4
movzx edx, ax
fld dword [ebp + edx*4 + 0x1a]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul qword [0x5af4d8]
fstp dword [esp + 0x18]
fld st(0)
fld dword [esp + 0x18]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x51be37
fstp st(1)
call fcn.00599920
push eax
lea eax, [edi + 0x108]
push eax
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea ecx, [esp + 0xdc]
push str._s__d__
push ecx
call ebx
add esp, 0x10
push 0x55fc55
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
call fcn.0043c080
fldz
jmp 0x51be39
fstp st(0)
inc edi
cmp edi, 5
jle 0x51bdbb
movzx eax, word [ebp + 0x1a]
test ax, ax
je 0x51be8a
movzx eax, ax
fstp st(0)
push eax
push 0x2a9
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea ecx, [esp + 0xdc]
push 0x5b5eb4
push ecx
call ebx
add esp, 0x10
push 0x55fc55
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
call fcn.0043c080
fldz
mov edi, 1
movzx eax, di
test ax, ax
jne 0x51be9d
fst dword [esp + 0x14]
jmp 0x51bea8
movzx eax, ax
fld dword [ebp + eax*4 + 0x32]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul qword [0x5af4d8]
fstp dword [esp + 0x18]
fld st(0)
fld dword [esp + 0x18]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x51bf0b
fstp st(1)
call fcn.00599920
push eax
lea ecx, [edi + 0x187]
push ecx
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0xdc]
push str._s__d__
push edx
call ebx
add esp, 0x10
push 0x55fc55
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0043c080
fldz
jmp 0x51bf0d
fstp st(0)
inc edi
cmp edi, 5
jle 0x51be8f
movzx eax, word [ebp + 0x1c]
fstp st(0)
test ax, ax
je 0x51bf5c
movzx ecx, ax
push ecx
push 0x18d
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0xdc]
push str._s__d
push edx
call ebx
add esp, 0x10
push 0x55fc55
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0043c080
lea ecx, [esp + 0x30]
mov byte [esp + 0x160], 3
call fcn.00429890
lea ecx, [esp + 0xb4]
mov byte [esp + 0x160], 1
call fcn.00429890
jmp 0x51bf9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push 0
push ecx
push edx
push esi
mov ecx, 0x69fe70
call fcn.004ba110
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x29c]
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.00429490
add dword [esp + 0x1c], 0x20
add dword [esp + 0x24], 0x4e
add dword [esp + 0x20], 0x50
inc esi
cmp esi, dword [edi + 0xa0c]
mov dword [esp + 0x28], esi
jl 0x51b994
mov edx, dword [edi]
mov eax, dword [edx + 8]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x160], 0
call fcn.00429890
lea ecx, [esp + 0x94]
mov dword [esp + 0x160], 0xffffffff
call fcn.00429890
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.005997a8
add esp, 0x150
ret
movzx eax, word [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push str.error_db__d_item__d_
push 0x1a
push 0x6a0f60
call fcn.004d8020
add esp, 0x14
jmp 0x51bfdc