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

Disassembly:
push 0xffffffffffffffff
push 0x625603
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, dword [esp + 0xdc]
xor ebp, ebp
mov ebx, ecx
cmp esi, ebp
push edi
mov dword [esp + 0x24], ebx
je 0x57b504
lea eax, [esi + 0x50]
cmp eax, ebp
je 0x57b4ee
cmp dword [esi + 0xf0], ebp
jle 0x57b4ee
push ebp
mov ecx, esi
call fcn.00582790
mov ecx, dword [ebx + 0x100]
push eax
call fcn.00411700
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x30], edi
je 0x57acd9
mov ecx, dword [0x6833d0]
mov ecx, dword [ecx + 0x424]
call fcn.00603ef0
mov dword [esp + 0x60], eax
mov al, byte [0x770970]
test al, 1
jne 0x57a68b
or al, 1
mov esi, 0x770990
mov byte [0x770970], al
mov ebp, 0x400
mov ecx, esi
call fcn.0057b530
add esi, 0x34
dec ebp
jne 0x57a65e
mov ecx, 0x770978
call fcn.0057b570
push 0x57b5e0
call fcn.00613ec1
mov esi, dword [esp + 0xe4]
add esp, 4
xor ebp, ebp
mov edx, dword [0x6451a4]
mov ecx, dword [esi + 0x1a0]
or eax, 0xffffffff
test edx, ecx
ja 0x57ad9b
lea ecx, [esp + 0x44]
lea edx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x60]
push edx
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xf0]
lea ecx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esi + 0x50]
mov ecx, ebx
push eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
call fcn.0057b5f0
test eax, eax
jne 0x57a727
mov edx, dword [0x6451a4]
mov eax, dword [esi + 0x1a0]
not edx
and eax, edx
jmp 0x57b4fe
mov eax, dword [0x6833d0]
mov edx, dword [esp + 0x1c]
push edx
mov ecx, dword [eax + 0x424]
call fcn.00603f70
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x138]
cmp eax, ebp
jle 0x57a81f
lea ebp, [eax - 1]
test ebp, ebp
jl 0x57a81f
mov ecx, dword [esp + 0xe0]
push ebp
call fcn.00583390
mov ecx, dword [ebx + 0x100]
push eax
call fcn.00411700
mov esi, eax
test esi, esi
je 0x57a811
fld dword [esi + 0x3c]
call fcn.0061318c
fld dword [esi + 0x38]
push eax
call fcn.0061318c
push eax
mov ecx, edi
call fcn.00539bd0
mov ecx, dword [esp + 0x18]
and eax, 0xff
cmp eax, ecx
jne 0x57a811
mov eax, dword [esi]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x8c]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x23c]
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, edi
mov dword [edx + 8], eax
mov edx, dword [edi]
lea eax, [esp + 0x90]
push eax
call dword [edx + 0x23c]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
push esi
push edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
call fcn.004ae3c0
add esp, 0x3c
cmp eax, 1
je 0x57aa73
dec ebp
jns 0x57a759
mov esi, dword [esp + 0xe0]
mov ecx, 0x3400
xor eax, eax
mov edi, 0x770990
mov dword [0x770980], 0x7f7fffff
mov dword [0x770978], 0x7f7fffff
mov dword [0x770988], 0x7f7fffff
mov dword [0x770984], 0xbf800000
mov dword [0x77097c], 0xbf800000
mov dword [0x77098c], 0xbf800000
mov dword [esp + 0x20], eax
rep stosd dword es:[edi], eax
mov dword [0x77d990], eax
mov dword [0x77e998], eax
cmp dword [ebx + 0x2b8], eax
jle 0x57acba
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx + 0x2bc]
add eax, ecx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x57ac91
mov al, byte [eax + 0xb]
mov edx, dword [esp + 0xdc]
mov esi, eax
and esi, 0xff
cmp esi, edx
je 0x57a8b9
cmp edx, 0xffffffff
jne 0x57ac91
test al, al
je 0x57ac91
push ecx
mov ecx, dword [ebx + 0x100]
call fcn.00411700
mov esi, eax
test esi, esi
je 0x57ac91
mov eax, dword [esi + 0xc]
cmp byte [eax + 0xa2], 2
je 0x57ac91
mov edx, dword [ebx + 0x100]
mov eax, dword [eax + 0x9c]
push eax
mov ecx, dword [edx + 0x5bdc]
mov edx, dword [ecx]
call dword [edx + 0x1c]
cmp eax, 1
je 0x57ac91
cmp byte [esi + 0x48], 2
ja 0x57ac91
fld dword [esi + 0x30]
fcomp dword [0x634594]
fnstsw ax
test ah, 0x40
jne 0x57ac91
mov ecx, dword [esi + 8]
cmp byte [ecx + 4], 0x50
je 0x57a973
mov eax, dword [ebx + 0x100]
mov edx, dword [esi]
mov ecx, dword [eax + 0xf0]
push ecx
mov ecx, esi
call dword [edx + 0xfc]
test al, al
je 0x57ac91
cmp al, 0x80
jne 0x57a960
mov edx, dword [esi + 8]
mov al, byte [edx + 0x6d]
test al, al
je 0x57ac91
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28c]
cmp eax, 1
je 0x57ac91
cmp dword [esp + 0x14], 1
jne 0x57a998
push esi
mov ecx, ebx
call fcn.00571cd0
cmp eax, 1
je 0x57ac91
mov ecx, dword [esi + 8]
cmp byte [ecx + 4], 0x2d
je 0x57ac91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x57aaf8
push esi
mov ecx, ebx
call fcn.00571cd0
test eax, eax
jne 0x57aaf8
mov eax, dword [esi + 8]
cmp word [eax + 0x10], 0x2d
je 0x57aaf8
cmp word [eax + 0x16], 0x1b
jne 0x57ac91
mov edx, dword [0x6833d0]
mov byte [esp + 0x13], 0
fld dword [esi + 0x38]
mov eax, dword [edx + 0x424]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x4c], eax
call fcn.0061318c
lea ebp, [eax - 3]
add eax, 3
cmp ebp, eax
jg 0x57ac91
mov al, byte [esp + 0x13]
test al, al
jne 0x57aaf8
test ebp, ebp
jl 0x57aad8
mov ecx, dword [esp + 0x4c]
cmp ebp, dword [ecx + 8]
jge 0x57aad8
fld dword [esi + 0x3c]
call fcn.0061318c
lea edi, [eax - 3]
add eax, 3
cmp edi, eax
jg 0x57aad8
test edi, edi
jl 0x57aa61
mov edx, dword [esp + 0x4c]
cmp edi, dword [edx + 0xc]
jge 0x57aa61
mov ebx, dword [esp + 0x30]
push edi
push ebp
mov ecx, ebx
call fcn.00539bd0
mov dl, al
mov ecx, ebx
mov byte [esp + 0x2b], dl
call fcn.00539cc0
mov cl, byte [esp + 0x2b]
cmp cl, al
je 0x57aacf
fld dword [esi + 0x3c]
inc edi
call fcn.0061318c
add eax, 3
cmp edi, eax
jle 0x57aa32
jmp 0x57aad4
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xf4]
mov eax, dword [esp + 0xe0]
mov dword [ecx], 1
mov dword [edx], 0
mov ecx, dword [eax + 0x138]
dec ecx
cmp ebp, ecx
jne 0x57aaa9
mov dword [eax + 0x138], 0
mov edx, dword [0x6451a4]
mov edi, dword [eax + 0x1a0]
not edx
and edi, edx
mov ecx, ebx
mov dword [eax + 0x1a0], edi
mov eax, dword [esi + 4]
push eax
call fcn.00571010
jmp 0x57b506
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x24]
fld dword [esi + 0x38]
inc ebp
call fcn.0061318c
add eax, 3
cmp ebp, eax
jle 0x57a9fb
mov al, byte [esp + 0x13]
test al, al
je 0x57ac91
mov ecx, dword [esp + 0xec]
mov eax, 1
cmp ecx, eax
jne 0x57ab26
cmp dword [esp + 0x14], eax
jne 0x57ab26
mov ecx, esi
call fcn.00539cc0
mov ecx, dword [esp + 0x18]
and eax, 0xff
cmp eax, ecx
je 0x57ac91
cmp dword [esp + 0x50], 1
jne 0x57ab5f
mov edi, dword [esp + 0x64]
test edi, edi
je 0x57ab5f
mov ecx, edi
call fcn.00539bc0
test eax, eax
je 0x57ab5f
mov ecx, edi
call fcn.00539bc0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx + 0xc0]
test eax, eax
je 0x57ac91
cmp dword [esp + 0x48], 1
jne 0x57abcd
push esi
mov ecx, ebx
call fcn.00571c60
test eax, eax
je 0x57ac91
mov edx, dword [esi + 8]
mov ax, word [edx + 0x10]
cmp ax, 0x46
je 0x57ac91
cmp ax, 0x67
je 0x57ac91
cmp ax, 0x32
je 0x57ac91
cmp ax, 0x232
je 0x57ac91
cmp ax, 0x44
je 0x57ac91
cmp ax, 0x248
je 0x57ac91
cmp ax, 0x256
je 0x57ac91
cmp ax, 0xd1
je 0x57ac91
cmp dword [esp + 0x44], 1
jne 0x57abe4
push esi
mov ecx, ebx
call fcn.00571c60
test eax, eax
je 0x57ac91
cmp dword [esp + 0x60], 3
jl 0x57abf9
mov eax, dword [esi + 8]
cmp word [eax + 0x16], 4
je 0x57ac91
mov al, byte [0x770970]
test al, 2
jne 0x57ac30
mov dl, al
xor eax, eax
or dl, 2
push 0x57b5b0
mov byte [0x770970], dl
mov dword [0x7708e0], eax
mov dword [0x7708e4], eax
mov dword [0x7708e8], eax
mov dword [0x7708ec], eax
call fcn.00613ec1
add esp, 4
mov edx, dword [esi]
lea eax, [esp + 0x68]
push 0x7708e0
push eax
mov ecx, esi
call dword [edx + 0x23c]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, ebx
call fcn.00578850
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xe0]
push edx
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xf0]
push esi
push edx
lea edx, [esp + 0x60]
push edx
push 0x7708e0
push eax
lea eax, [ecx + 0x50]
push eax
mov ecx, 0x770978
call fcn.00579870
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x2b8]
inc ecx
add eax, 0x2c
cmp ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
jl 0x57a887
mov esi, dword [esp + 0xe0]
push ebx
mov ecx, 0x770978
call fcn.00579db0
push ebx
mov ecx, 0x770978
call fcn.0057a060
mov eax, dword [0x77d990]
test eax, eax
jg 0x57acf3
mov eax, dword [0x6451a4]
mov ecx, dword [esi + 0x1a0]
not eax
and ecx, eax
mov dword [esi + 0x1a0], ecx
jmp 0x57b504
mov edi, dword [ebx + 0x2558]
lea eax, [ebx + 0x252c]
cmp edi, eax
je 0x57ad9b
mov ecx, dword [esp + 0xdc]
mov eax, dword [edi + 0x14]
cmp eax, ecx
jne 0x57ad8a
mov edx, dword [0x6833d0]
mov ecx, dword [edx + 0x424]
mov eax, dword [ecx + 0x10]
cmp eax, 0xdbba0
jbe 0x57ad37
mov edx, dword [edi + 0x28]
sub eax, 0xdbba0
cmp edx, eax
jb 0x57ad8a
mov edx, dword [edi + 0x10]
push edx
call fcn.00603f70
test eax, eax
je 0x57ad8a
push eax
mov ecx, ebx
call fcn.00571c60
test eax, eax
je 0x57ad8a
fld dword [edi + 0x1c]
call fcn.0061318c
mov esi, dword [edi + 0x18]
mov ebp, eax
fld dword [edi + 0x24]
mov ebx, ebp
sub ebx, esi
call fcn.0061318c
mov ecx, eax
add ebp, esi
sub ecx, esi
add esi, eax
push esi
push ebp
push ecx
push ebx
mov ecx, 0x770978
call fcn.0057a450
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0xe0]
mov edi, dword [edi + 0x2c]
lea eax, [ebx + 0x252c]
cmp edi, eax
jne 0x57ad07
mov eax, dword [esi + 0xf0]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x20], 0x41800000
jle 0x57ae06
mov eax, dword [esp + 0xe0]
mov ebx, eax
lea edi, [eax + 0x50]
mov ecx, dword [0x6833d0]
mov edx, dword [edi]
push edx
mov ecx, dword [ecx + 0x424]
call fcn.00603f70
mov esi, eax
test esi, esi
je 0x57adf8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x57adf8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
fstp dword [esp + 0x20]
mov eax, dword [ebx + 0xf0]
inc ebp
add edi, 4
cmp ebp, eax
jl 0x57adbb
mov eax, dword [esp + 0xe0]
mov ecx, dword [0x6451a4]
test dword [eax + 0x1a0], ecx
jbe 0x57ae27
mov ecx, dword [eax + 0x254]
mov dword [esp + 0x1c], ecx
jmp 0x57ae33
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x77d990]
mov dword [esp + 0x18], ecx
cmp ecx, edx
jge 0x57b0ef
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0xe0]
lea edx, [ecx*4 + 0x77d994]
xor ebp, ebp
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jle 0x57ae9a
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x24]
sub eax, edx
mov edx, dword [ecx + 0x100]
mov ecx, dword [edx + 0xf0]
mov edx, dword [ecx + 0x8c]
cmp eax, dword [edx + 0x118]
jae 0x57b114
mov eax, dword [0x6833d0]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x424]
mov eax, dword [edx]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov edx, dword [eax*4 + 0x770990]
push edx
call fcn.00603f70
mov esi, eax
cmp esi, ebp
je 0x57b0c6
mov dword [ebx + 0x10], ebp
mov ecx, dword [0x77e994]
mov edx, dword [0x77e998]
lea eax, [ebx + 4]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
mov edx, dword [esi]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call dword [edx + 0x23c]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [edi]
mov dword [ecx + 8], eax
lea eax, [esp + 0x9c]
push eax
mov ecx, edi
call dword [edx + 0x23c]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
push esi
push edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
call fcn.004ae3c0
add esp, 0x3c
cmp eax, 1
je 0x57b133
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x10], ebp
mov eax, dword [ecx]
mov ecx, dword [esp + 0xf0]
cmp ecx, 1
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov eax, dword [eax*4 + 0x7709ac]
jne 0x57b039
cmp eax, ebp
je 0x57af9d
cmp eax, 1
jne 0x57b039
mov ecx, dword [esp + 0x24]
push 0xf1
mov ecx, dword [ecx + 0x100]
add ecx, 0x4588
call fcn.0058bbe0
test eax, eax
jne 0x57b039
fld dword [esi + 0x38]
call fcn.0061318c
fld dword [esi + 0x3c]
mov ebp, eax
call fcn.0061318c
fld dword [esi + 0x40]
mov dword [esp + 0x58], eax
call fcn.0061318c
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
mov dword [esp + 0x60], eax
call fcn.004ad560
mov ecx, dword [esi + 4]
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x17
push 0x16
push 1
push 0
push ecx
push eax
mov eax, dword [esp + 0x7c]
sub esp, 0xc
mov ecx, esp
mov edx, dword [edi]
mov dword [esp + 0x104], 0
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + 8], eax
mov ecx, edi
call dword [edx + 0x1cc]
cmp eax, 1
je 0x57b1cd
lea ecx, [esp + 0x80]
mov dword [esp + 0xd4], 0xffffffff
call fcn.004ad5d0
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0xd4], 1
mov eax, dword [edx]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
cmp dword [eax*4 + 0x7709ac], 1
jne 0x57b09e
mov ecx, dword [esi + 0xc]
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
mov eax, dword [ecx + 0x9c]
mov ecx, dword [esp + 0x24]
push 0x1b
push eax
mov eax, dword [esi + 4]
push ebp
push ecx
push eax
mov ecx, edi
call dword [edx + 0x1c8]
cmp eax, 1
je 0x57b379
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
mov dword [esp + 0xd4], 0xffffffff
je 0x57b0ba
push ecx
call fcn.00613172
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x77d990]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x57ae5d
mov eax, dword [esp + 0xe0]
mov ecx, dword [0x6451a4]
mov edx, dword [eax + 0x1a0]
not ecx
and edx, ecx
mov dword [eax + 0x1a0], edx
mov dword [eax + 0x254], 0
jmp 0x57b504
mov ecx, dword [0x6451a4]
mov eax, dword [ebx + 0x1a0]
or eax, ecx
mov dword [ebx + 0x1a0], eax
mov dword [ebx + 0x254], esi
jmp 0x57b504
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx*4 + 0x77d994]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov edx, dword [eax*4 + 0x7709ac]
mov eax, dword [esp + 0xe8]
mov dword [eax], edx
mov edx, dword [esp + 0xf4]
mov dword [edx], ebp
mov eax, dword [0x6451a4]
mov edi, dword [ebx + 0x1a0]
not eax
and edi, eax
mov dword [ebx + 0x1a0], edi
mov dword [ebx + 0x254], ebp
mov eax, dword [ecx*4 + 0x77d994]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov eax, dword [eax*4 + 0x770994]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x24]
mov esi, dword [edx + 0x2bc]
lea eax, [esi + eax*4 + 0x10]
mov esi, dword [eax]
inc esi
mov dword [eax], esi
mov eax, dword [ecx*4 + 0x77d994]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
mov eax, dword [eax*4 + 0x770994]
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
mov ecx, dword [edx + 0x2bc]
lea eax, [ecx + eax*4]
jmp 0x57b506
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp*4 + 0x77d994]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xf4]
mov ecx, dword [eax*4 + 0x7709ac]
mov eax, dword [esp + 0xe8]
mov dword [eax], ecx
mov dword [edx], 1
cmp dword [eax], 0
je 0x57b2eb
mov eax, dword [edi]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x30]
push edx
push ecx
push 1
mov ecx, edi
call dword [eax + 0x1d0]
test eax, eax
jne 0x57b2eb
mov edx, dword [edi]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x34]
lea eax, [esp + 0x30]
push ecx
push eax
push 0x16
mov ecx, edi
call dword [edx + 0x1d0]
test eax, eax
jne 0x57b2eb
mov edx, dword [edi]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x34]
lea eax, [esp + 0x30]
push ecx
push eax
push 0x17
mov ecx, edi
call dword [edx + 0x1d0]
test eax, eax
jne 0x57b2eb
mov edx, dword [esp + 0x20]
lea ecx, [ebx + 4]
push ecx
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [esi]
lea ecx, [esp + 0xcc]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x23c]
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, edi
mov dword [edx + 8], eax
mov edx, dword [edi]
lea eax, [esp + 0xe8]
push eax
call dword [edx + 0x23c]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
push esi
push edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
call fcn.004ae3c0
add esp, 0x3c
test eax, eax
je 0x57b2eb
mov ecx, dword [esp + 0xf4]
mov dword [ecx], 0
mov edx, dword [0x6451a4]
mov esi, dword [ebx + 0x1a0]
not edx
and esi, edx
mov dword [esp + 0xd4], 0xffffffff
mov dword [ebx + 0x1a0], esi
mov dword [ebx + 0x254], 0
mov eax, dword [ebp*4 + 0x77d994]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [edx*4 + 0x770994]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x2bc]
lea eax, [eax + edx*4 + 0x10]
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [ebp*4 + 0x77d994]
mov ecx, dword [ecx + 0x2bc]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
mov eax, dword [eax*4 + 0x770994]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea esi, [ecx + eax*4]
lea ecx, [esp + 0x80]
call fcn.004ad5d0
mov eax, esi
jmp 0x57b506
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x138], ebp
cmp eax, ebp
jle 0x57b461
mov ebp, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x40]
lea ecx, [ebp - 1]
lea edx, [eax - 1]
cmp ecx, edx
jle 0x57b409
cmp ebp, eax
jl 0x57b3b5
lea edi, [eax + 0x20]
cmp edi, ebp
jg 0x57b3b7
mov edi, ebp
lea edx, [edi*4]
push edx
call fcn.0061317d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x57b405
mov ecx, dword [esp + 0x40]
xor eax, eax
test ecx, ecx
jle 0x57b3f0
cmp eax, edi
jge 0x57b3f0
mov ecx, dword [esp + 0x34]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jl 0x57b3d7
mov eax, dword [esp + 0x34]
push eax
call fcn.00613172
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], edi
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ecx]
mov ecx, dword [esp + 0x24]
push eax
mov ecx, dword [ecx + 0x100]
call fcn.00411700
mov edi, eax
test edi, edi
je 0x57b442
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x24]
push edx
call fcn.00571a70
mov eax, dword [edi + 4]
mov ecx, ebx
push eax
call fcn.005833b0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
inc ebp
add ecx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebp
lea ecx, [ebp - 1]
cmp ecx, eax
jl 0x57b39c
mov edx, dword [esi + 4]
mov ecx, ebx
push edx
call fcn.005833b0
mov eax, dword [esp + 0x18]
push 0
mov eax, dword [eax*4 + 0x77d994]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0xec]
mov eax, dword [edx*4 + 0x7709ac]
mov edx, dword [esp + 0xf8]
mov dword [ecx], eax
mov ecx, ebx
mov dword [edx], 0
mov eax, dword [0x6451a4]
mov edi, dword [ebx + 0x1a0]
not eax
and edi, eax
mov dword [ebx + 0x1a0], edi
mov dword [ebx + 0x254], 0
call fcn.00583390
mov ecx, dword [esp + 0x24]
push eax
call fcn.00571010
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0xd4], 0xffffffff
je 0x57b4ea
push eax
call fcn.00613172
add esp, 4
mov eax, esi
jmp 0x57b506
mov ecx, dword [0x6451a4]
mov eax, dword [esi + 0x1a0]
not ecx
and eax, ecx
mov dword [esi + 0x1a0], eax
xor eax, eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret 0x1c