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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
mov esi, dword [esp + 0x38]
mov al, byte [esi + 8]
push edi
mov edi, dword [esp + 0x40]
mov ebp, ebx
and ebp, 4
mov dword [esp + 0x10], ecx
mov byte [edi + 0x28], al
je 0x575cad
fld dword [esi + 0xd8]
fstp dword [edi + 0x50]
test ebp, ebp
je 0x575cba
mov ecx, dword [esi + 0xd4]
mov dword [edi + 0x4c], ecx
and ebx, 1
je 0x575cfe
lea edx, [esi + 0x90]
mov ecx, dword [edx]
lea eax, [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov ecx, esi
mov dword [eax + 8], edx
call fcn.004cb120
test eax, eax
je 0x575cf7
mov ecx, esi
call fcn.004cb120
add eax, 0x11c
mov eax, dword [eax + 4]
mov dword [edi + 0x3c], eax
jmp 0x575cfe
mov dword [edi + 0x3c], 0x7f000000
test byte [esp + 0x44], 2
je 0x575d61
lea ecx, [esi + 0x9c]
mov eax, dword [ecx]
lea edx, [edi + 0x40]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov dl, byte [esi + 8]
cmp dl, byte [0x746634]
jne 0x575d3d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc4]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0xd4]
cmp eax, 0x2719
je 0x575d51
cmp eax, 0x277d
jne 0x575d61
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [eax + 0x504]
mov dword [edi + 0x78], ecx
test byte [esp + 0x44], 0x20
je 0x575d96
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd0]
lea ecx, [esp + 0x14]
mov word [edi + 0x8c], ax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc8]
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [edi + 0x7c]
call fcn.00406120
test byte [esp + 0x44], 8
je 0x575db4
lea eax, [esi + 0x130]
push eax
lea ecx, [edi + 0xa8]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00570530
test byte [esp + 0x44], 0x10
je 0x575eec
mov al, byte [esi + 8]
cmp al, byte [0x746639]
jne 0x575e39
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
lea ecx, [edi + 0xd4]
push ecx
mov ecx, dword [esp + 0x14]
add eax, 0x2dc
push eax
call fcn.005706f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [eax + 0x2e8]
mov dword [edi + 0xe0], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
movzx eax, byte [eax + 0x2f4]
mov dword [edi + 0xe4], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [eax + 0x2c4]
mov dword [edi + 0xec], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [eax + 0xf8]
mov dword [edi + 0xf0], eax
jmp 0x575eec
cmp al, byte [0x746638]
jne 0x575ead
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
lea ecx, [edi + 0xd4]
push ecx
mov ecx, dword [esp + 0x14]
add eax, 0x318
push eax
call fcn.005706f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [eax + 0x278]
mov dword [edi + 0xe0], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
movzx eax, byte [eax + 0x28c]
mov dword [edi + 0xe4], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [eax + 0x260]
mov dword [edi + 0xec], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [eax + 0xf8]
mov dword [edi + 0xf0], eax
jmp 0x575eec
cmp al, byte [0x746636]
jne 0x575eec
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [eax + 0x2bc]
test ecx, ecx
je 0x575eec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov ecx, dword [eax + 0x2b8]
mov dword [edi + 0xe8], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
mov eax, dword [eax + 0x2c8]
mov dword [edi + 0xe4], eax
mov cl, byte [0x746638]
cmp byte [esi + 8], cl
jne 0x575f26
test ebx, ebx
je 0x575f26
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
mov ecx, dword [eax + 0x204]
mov dword [edi + 0x148], ecx
mov edx, dword [eax + 0x20c]
mov dword [edi + 0x150], edx
mov eax, dword [eax + 0x208]
mov dword [edi + 0x14c], eax
mov cl, byte [0x746634]
cmp byte [esi + 8], cl
jne 0x576347
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
test ebp, ebp
mov esi, eax
je 0x575f4e
mov eax, dword [esi + 0x340]
mov cl, byte [eax + 0x28]
mov byte [edi + 0x60], cl
test byte [esp + 0x44], 0x40
mov ebx, dword [esp + 0x38]
je 0x575fe0
test ebx, ebx
mov dx, word [esi + 0x9f0]
mov word [edi + 0x62], dx
mov al, byte [esi + 0x9f2]
mov byte [edi + 0x64], al
mov cx, word [esi + 0x9fc]
mov word [edi + 0x66], cx
mov edx, dword [esi + 0x9f4]
mov dword [edi + 0x70], edx
mov eax, dword [esi + 0x4e0]
mov dword [edi + 0x68], eax
mov cl, byte [esi + 0x4d1]
mov byte [edi + 0x6c], cl
je 0x575fd9
mov ecx, ebx
call fcn.00561080
test eax, eax
je 0x575fd9
mov ecx, ebx
call fcn.00561080
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
test eax, eax
je 0x575fd9
mov ecx, ebx
call fcn.00561080
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x30]
mov ecx, eax
call fcn.0057cd90
mov byte [edi + 0xf4], al
jmp 0x575fe0
mov byte [edi + 0xf4], 2
test ebp, ebp
je 0x576048
xor eax, eax
mov ax, word [edi + 0x4c]
mov ecx, esi
push eax
call fcn.004cae60
test eax, eax
jne 0x576048
mov ecx, dword [esi + 0x340]
mov eax, dword [ecx + 0x8c]
mov ecx, dword [ecx + 0x90]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
je 0x576048
test ax, ax
je 0x576048
movzx edx, ax
fld dword [ecx + edx*8 - 4]
lea eax, [ecx + edx*8]
mov ecx, dword [eax - 8]
mov eax, ecx
lea edx, [edi + 0x54]
mov dword [edx], eax
fstp dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x44]
test ah, 1
je 0x57606b
mov ecx, esi
call fcn.004f1b20
fstp dword [edi + 0xa0]
mov ecx, esi
call fcn.004f1be0
fstp dword [edi + 0xa4]
mov eax, dword [esp + 0x44]
test ah, 8
je 0x576081
mov ecx, esi
call fcn.004cb020
mov byte [edi + 0xb5], al
mov eax, dword [esp + 0x44]
test ah, 4
je 0x5760cc
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x9c]
mov word [edi + 0xba], ax
mov ax, word [esi + 0xe0]
mov word [edi + 0xbc], ax
mov cx, word [esi + 0xe4]
mov word [edi + 0xbe], cx
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x98]
mov word [edi + 0xc0], ax
test dword [esp + 0x44], 0x80000
je 0x576120
mov eax, dword [esi + 0xa74]
mov cx, word [eax + 0x124]
mov word [edi + 0x130], cx
mov edx, dword [esi + 0xa74]
mov ax, word [edx + 0x122]
mov word [edi + 0x132], ax
mov ecx, dword [esi + 0xa74]
mov dx, word [ecx + 0x126]
mov ecx, esi
mov word [edi + 0x134], dx
call fcn.004fd490
mov word [edi + 0x136], ax
mov eax, dword [esp + 0x44]
test ah, 0x40
je 0x57618a
mov eax, dword [esi + 0x9d4]
mov dword [edi + 0x120], eax
mov cl, byte [esi + 0x9f0]
and cl, 0x40
sub cl, 0x40
neg cl
sbb ecx, ecx
inc ecx
mov dword [edi + 0xc4], ecx
mov ecx, esi
call fcn.00513fc0
mov ecx, eax
call fcn.005bf690
mov dword [edi + 0xcc], eax
mov ebp, dword [esi + 4]
mov ecx, esi
call fcn.00513fc0
mov ecx, eax
call fcn.005bf5c0
sub eax, ebp
neg eax
sbb eax, eax
inc eax
mov dword [edi + 0xc8], eax
mov edx, dword [esi + 0x930]
mov dword [edi + 0xd0], edx
mov eax, dword [esp + 0x44]
test ah, ah
jns 0x576229
mov ecx, ebx
call fcn.00561080
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x576229
mov eax, dword [eax + 4]
cmp eax, dword [esi + 4]
jne 0x5761da
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
call fcn.004ae6b0
cmp eax, ebx
je 0x576229
mov ecx, dword [esi + 4]
push ecx
lea ecx, [eax + 0x13c]
call fcn.004af240
mov dword [edi + 0x100], eax
jmp 0x576229
push eax
mov ecx, esi
call fcn.00517a20
cmp eax, ebx
je 0x576217
xor edx, edx
mov dl, byte [eax + 4]
xor ecx, ecx
shr edx, 1
and edx, 1
mov dword [edi + 0xfc], edx
mov cl, byte [eax + 4]
xor edx, edx
and ecx, 1
mov dword [edi + 0xf8], ecx
mov dl, byte [eax + 4]
shr edx, 4
and edx, 1
mov dword [edi + 0x100], edx
jmp 0x576229
mov dword [edi + 0xfc], ebx
mov dword [edi + 0xf8], ebx
mov dword [edi + 0x100], ebx
test dword [esp + 0x44], 0x20000
je 0x576243
mov ecx, dword [esp + 0x10]
push esi
call fcn.005676b0
mov byte [edi + 0xb4], al
mov eax, dword [esp + 0x44]
test ah, 0x10
je 0x576319
mov eax, dword [esi + 0xa74]
mov cx, word [eax + 0xdc]
mov word [edi + 0x104], cx
mov edx, dword [esi + 0xa74]
add edx, 0xe0
push edx
lea ecx, [edi + 0x108]
call fcn.005e5c50
mov eax, dword [esi + 0xa74]
mov cl, byte [eax + 0xe8]
mov byte [edi + 0x110], cl
mov edx, dword [esi + 0xa74]
mov al, byte [edx + 0x64]
mov byte [edi + 0x111], al
mov ecx, dword [esi + 0xa74]
mov dx, word [ecx + 0x17e]
mov word [edi + 0x118], dx
mov eax, dword [esi + 0xf4]
mov dword [edi + 0x11c], eax
mov ecx, dword [esi + 0xa74]
mov al, byte [ecx + 0x89]
xor ebp, ebp
test al, al
jbe 0x576319
lea eax, [edi + 0x114]
mov edx, edi
sub edx, eax
add edx, 0x112
mov dword [esp + 0x3c], edx
push ebp
lea ebx, [edi + ebp + 0x114]
call fcn.005a4e90
mov ecx, dword [esp + 0x3c]
push 0
mov byte [ecx + ebx], al
mov ecx, dword [esi + 0xa74]
push ebp
call fcn.005a5090
mov byte [ebx], al
mov ecx, dword [esi + 0xa74]
movzx edx, byte [ecx + 0x89]
inc ebp
cmp ebp, edx
jl 0x5762e3
test dword [esp + 0x44], 0x100000
je 0x576347
mov eax, dword [esi + 0x204]
mov dword [edi + 0x148], eax
mov ecx, dword [esi + 0x20c]
mov dword [edi + 0x150], ecx
mov edx, dword [esi + 0x208]
mov dword [edi + 0x14c], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10