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

Disassembly:
jmp 0x51ba90
sub esp, 0x38
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1b8]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], ebx
je 0x51c0c9
call fcn.00408e45
cmp dword [esi + 0x28c], ebx
je 0x51baf4
mov ecx, dword [esi + 0x1c0]
fldz
imul ecx, dword [esi + 0x1bc]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1b8]
push edx
lea edx, [esi + 0x1c4]
push edx
push ecx
fstp dword [esp]
push ebx
push ebx
lea ecx, [esi + 0x288]
call fcn.00404b8d
cmp dword [esi + 0x2ac], ebx
je 0x51bb55
mov ecx, dword [esi + 0x1c0]
fld dword [esi + 0x1c4]
imul ecx, dword [esi + 0x1bc]
fadd qword [0x6496b8]
fstp dword [esp + 0xc]
fld dword [esi + 0x1c8]
fadd qword [0x654ec8]
mov eax, 0x51eb851f
fstp dword [esp + 0x10]
fldz
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1b8]
push edx
lea edx, [esp + 0x10]
push edx
push ecx
fstp dword [esp]
push ebx
push ebx
lea ecx, [esi + 0x2a8]
call fcn.00404b8d
mov ecx, dword [esi + 0x2e8]
push ebp
cmp ecx, ebx
je 0x51bf02
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
movzx eax, ax
push eax
call fcn.004012f3
mov ebp, 1
add esp, 4
cmp eax, ebp
je 0x51bc37
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
mov ecx, 0x7b5bb8
call fcn.004059f7
test eax, eax
je 0x51bc37
mov edx, dword [esi + 0x2f0]
push edx
push 0x64f4c8
push 0x7b5f8c
call dword [sym.imp.USER32.dll_wsprintfA]
fld dword [esi + 0x1c4]
add esp, 0xc
call fcn.0060a450
fld dword [esi + 0x1c8]
add eax, 0x15
mov dword [esp + 0x24], eax
call fcn.0060a450
add eax, 0x1d
mov dword [esp + 0x28], eax
mov eax, 0x7b5f8c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x51bbf5
sub eax, edx
mov edx, dword [esi + 0x1c0]
imul edx, dword [esi + 0x1bc]
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1b8]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
push 0x7b5f8c
push ebx
mov ecx, 0x7b3aa8
call fcn.00402bd5
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
call fcn.004012f3
add esp, 4
cmp eax, 3
jne 0x51bc67
mov ecx, dword [esi + 0x2e8]
lea edx, [esi + 0x1c4]
push edx
call fcn.0040a5ce
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
push edi
call edx
movzx eax, ax
push eax
call fcn.004012f3
add esp, 4
cmp eax, 2
jne 0x51bf12
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
call eax
push eax
mov ecx, 0x7b5bb8
call fcn.0040d558
mov edi, eax
cmp edi, ebx
je 0x51bf12
test dword [edi + 0x29e], 0x1000
je 0x51bdb2
mov ecx, esi
call fcn.004014d8
fld dword [esi + 0x1c4]
call fcn.0060a450
fld dword [esi + 0x1c8]
add eax, 9
mov dword [esp + 0x38], eax
call fcn.0060a450
push 0xffff0000
lea ecx, [esp + 0x3c]
push ecx
push 4
add eax, 0xf
push 0x5eb
mov ecx, 0x7b73a8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.00410d20
push eax
push ebx
mov ecx, 0x7b3aa8
call fcn.00402bd5
mov eax, dword [edi]
mov ebp, dword [0x7b4d44]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x78]
mov ecx, edi
mov dword [esp + 0x14], ebx
call edx
movzx eax, ax
push eax
push 2
lea ecx, [ebp + 0x610]
call fcn.00408323
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x51bf09
fld1
movzx ecx, word [esi + 0x1ee]
fstp dword [esp + 0x28]
mov dword [esp + 0x14], ecx
push 0xff000000
lea edx, [esp + 0x24]
fst dword [esp + 0x30]
push edx
fld dword [esi + 0x1c4]
push ecx
fstp dword [esp + 0x2c]
lea eax, [esp + 0x34]
fld1
lea ecx, [esi + 0x2c8]
fsubrp st(1)
fild dword [esp + 0x20]
fmulp st(1)
fadd dword [esi + 0x1c8]
fstp dword [esp + 0x30]
fstp dword [esp]
push ebx
push eax
call fcn.00404b8d
mov ebp, 1
jmp 0x51bf12
mov ecx, edi
call fcn.00410afa
cmp eax, 0x22b
jne 0x51be4c
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x7b4d44]
add ecx, 0x610
mov dword [esp + 0x18], ebx
call fcn.004047a0
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x51bf0e
fld1
movzx edx, word [esi + 0x1ee]
fstp dword [esp + 0x20]
mov dword [esp + 0x10], edx
push 0xff000000
lea eax, [esp + 0x2c]
fst dword [esp + 0x28]
push eax
fld dword [esi + 0x1c4]
push ecx
fstp dword [esp + 0x34]
lea ecx, [esp + 0x2c]
fld1
fsubrp st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x1c8]
fstp dword [esp + 0x38]
fstp dword [esp]
push ebx
push ecx
lea ecx, [esi + 0x2c8]
call fcn.00404b8d
jmp 0x51bf12
mov ecx, edi
call fcn.00410afa
cmp eax, 0x200
jne 0x51bf12
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
movzx ecx, ax
push ecx
mov ecx, 0x7c910c
call fcn.00407f4a
cmp eax, ebx
je 0x51bf12
movzx eax, word [eax]
mov ecx, dword [0x7b4d44]
lea edx, [esp + 0x14]
push edx
push eax
add ecx, 0x610
mov dword [esp + 0x1c], ebx
call fcn.004075ea
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x51bf0e
fld1
movzx ecx, word [esi + 0x1ee]
fstp dword [esp + 0x20]
mov dword [esp + 0x10], ecx
push 0xff000000
lea edx, [esp + 0x2c]
fst dword [esp + 0x28]
push edx
fld dword [esi + 0x1c4]
push ecx
fstp dword [esp + 0x34]
lea eax, [esp + 0x2c]
fld1
lea ecx, [esi + 0x2c8]
fsubrp st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x1c8]
fstp dword [esp + 0x38]
fstp dword [esp]
push ebx
push eax
call fcn.00404b8d
jmp 0x51bf12
mov ebp, 1
jmp 0x51bf13
mov ebp, 1
fstp st(0)
fstp st(0)
pop edi
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
call fcn.004012f3
add esp, 4
cmp eax, ebp
jne 0x51c0be
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xbc]
call eax
test ax, ax
je 0x51bf84
mov ecx, dword [esi + 0x1c0]
fldz
imul ecx, dword [esi + 0x1bc]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1b8]
push edx
lea edx, [esi + 0x1c4]
push edx
push ecx
fstp dword [esp]
push ebx
push ebx
lea ecx, [esi + 0x2fc]
call fcn.00404b8d
mov eax, dword [0x7b4d44]
mov ecx, dword [esi + 0x2e8]
mov dword [esp + 0xc], ebx
mov edx, dword [ecx]
cmp dword [eax + 0x404], ebx
mov eax, dword [edx + 0x78]
call eax
movzx eax, ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x7b4d44]
push eax
push ebp
add ecx, 0x610
call fcn.00408323
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x51c022
fld1
movzx edx, word [esi + 0x1ee]
fstp dword [esp + 0x1c]
mov dword [esp + 0x10], edx
push 0xff000000
lea eax, [esp + 0x28]
fst dword [esp + 0x24]
push eax
fld dword [esi + 0x1c4]
push ecx
fstp dword [esp + 0x30]
lea ecx, [esp + 0x28]
fld1
fsubrp st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x1c8]
fstp dword [esp + 0x34]
fstp dword [esp]
push ebx
push ecx
lea ecx, [esi + 0x2c8]
call fcn.00404b8d
jmp 0x51c026
fstp st(0)
fstp st(0)
cmp dword [0x7b42c4], ebx
je 0x51c0be
mov ecx, dword [0x7c8500]
mov eax, dword [0x7c84fc]
push ecx
push eax
mov ecx, esi
call fcn.0040b762
cmp eax, ebp
jne 0x51c0be
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x51c08c
mov eax, 0x10624dd3
mul ecx
shr edx, 6
lea eax, [edx + 1]
cmp dword [esi + 0x2f8], eax
je 0x51c0be
push ecx
mov ecx, esi
mov dword [esi + 0x2f8], eax
call fcn.0040cf3b
mov edx, dword [esp + 0x18]
mov dword [esi + 0x2f4], ebp
pop ebp
mov dword [esi + 0x1b8], edx
pop esi
pop ebx
add esp, 0x38
ret
push ebx
mov ecx, esi
cmp dword [esi + 0x2f4], ebp
jne 0x51c0b9
call fcn.0040cf3b
mov edx, dword [esp + 0x18]
pop ebp
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f8], ebx
mov dword [esi + 0x1b8], edx
pop esi
pop ebx
add esp, 0x38
ret
call fcn.0040cf3b
mov edx, dword [esp + 0x18]
mov dword [esi + 0x1b8], edx
pop ebp
pop esi
pop ebx
add esp, 0x38
ret