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

Disassembly:
push 0xffffffffffffffff
push 0x5641e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x59fe58]
mov dl, byte [0x59fe5e]
push ebx
mov dword [esp + 0x14], ecx
mov cx, word [0x59fe5c]
push ebp
push esi
push edi
mov word [esp + 0x34], cx
xor esi, esi
push 6
push 0x59fe50
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], eax
mov byte [esp + 0x3e], dl
mov dword [esp + 0x44], esi
call fcn.005318a0
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0xb8]
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
cmp edi, edi
mov ebp, edi
je 0x457480
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebp
call fcn.00531810
mov ecx, ebx
call fcn.005319b0
add ebp, 4
add ebx, 4
cmp ebp, edi
jne 0x457462
mov ebp, dword [esi + 8]
mov edi, ebx
cmp ebx, ebp
je 0x457497
mov ecx, edi
call fcn.00531940
add edi, 4
cmp edi, ebp
jne 0x457489
mov edi, dword [esp + 0x20]
mov dword [esi + 8], ebx
mov al, byte [edi + 0x72]
cmp al, 0xfb
mov byte [esp + 0x31], al
jne 0x4579cb
lea eax, [esp + 0x40]
push 2
lea edx, [esp + 0x34]
lea ecx, [edi + 0x78]
push eax
push edx
mov byte [esp + 0x40], 2
mov dword [esp + 0x44], ecx
call fcn.0043cb50
test ax, ax
jne 0x457530
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0xbc], 1
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0xbc], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x458172
movsx eax, ax
mov ecx, 5
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
movsx eax, cx
cmp eax, edx
jg 0x45773a
cmp cx, 0xb
je 0x45772b
mov dl, byte [esp + eax + 0x3f]
test dl, dl
je 0x45772b
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
movsx eax, cx
mov cl, bl
mov dl, byte [esp + eax + 0x3f]
shr dl, cl
test dl, 1
je 0x45770f
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*8 - 0x28]
mov ax, word [edi*2 + 0x5753ec]
test ax, ax
je 0x45770f
xor edx, edx
mov ebp, 4
mov dl, ah
lea ecx, [esp + 0x10]
push edx
push ebp
call fcn.00531ad0
mov al, byte [edi*2 + 0x5753ec]
mov byte [esp + 0x2c], al
mov ecx, dword [esp + 0x2c]
push ecx
push 5
lea ecx, [esp + 0x18]
call fcn.00531ad0
push 0
push 3
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov edi, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x457693
mov ecx, esi
call fcn.0040a310
cmp eax, 1
jbe 0x457604
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x457609
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x20], eax
jns 0x45761a
xor eax, eax
shl eax, 2
push eax
call fcn.00556a96
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push edi
push ecx
mov ecx, esi
call fcn.004052e0
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov eax, dword [esi + 8]
add ebx, 4
push ebx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov eax, dword [esp + 0x24]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040a310
mov ebx, dword [esp + 0x24]
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 8], edx
mov dword [esi + 4], ebp
jmp 0x45770f
mov eax, edi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x4576df
lea ecx, [edi + 4]
push ecx
push edi
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x45770c
push edi
lea edx, [edi - 4]
push edi
push edx
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea eax, [esp + 0x1c]
lea ecx, [edi + 4]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebp
mov ecx, dword [esp + 0x14]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
jl 0x457570
inc ecx
cmp cx, 0xe
mov dword [esp + 0x18], ecx
jle 0x457541
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x40]
push 2
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x40], 4
call fcn.0043cb50
test ax, ax
jne 0x4577ba
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0xbc], 2
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0xbc], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x458172
movsx eax, ax
mov ecx, 5
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
movsx eax, cx
cmp eax, dword [esp + 0x1c]
jg 0x45813e
cmp word [esp + 0x18], 0xb
je 0x4579b3
mov cl, byte [esp + eax + 0x3f]
test cl, cl
je 0x4579b3
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
movsx eax, word [esp + 0x18]
mov cl, bl
mov dl, byte [esp + eax + 0x3f]
shr dl, cl
test dl, 1
je 0x45799b
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*8 - 0x28]
mov ax, word [edi*2 + 0x5753ec]
test ax, ax
je 0x45799b
xor edx, edx
mov ebp, 4
mov dl, ah
lea ecx, [esp + 0x10]
push edx
push ebp
call fcn.00531ad0
mov al, byte [edi*2 + 0x5753ec]
mov byte [esp + 0x2c], al
mov ecx, dword [esp + 0x2c]
push ecx
push 5
lea ecx, [esp + 0x18]
call fcn.00531ad0
push 1
push 3
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov edi, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x45791f
mov ecx, esi
call fcn.0040a310
cmp eax, 1
jbe 0x457890
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x457895
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x20], eax
jns 0x4578a6
xor eax, eax
shl eax, 2
push eax
call fcn.00556a96
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push edi
push ecx
mov ecx, esi
call fcn.004052e0
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov eax, dword [esi + 8]
add ebx, 4
push ebx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov eax, dword [esp + 0x24]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040a310
mov ebx, dword [esp + 0x24]
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 8], edx
mov dword [esi + 4], ebp
jmp 0x45799b
mov eax, edi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x45796b
lea ecx, [edi + 4]
push ecx
push edi
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x457998
push edi
lea edx, [edi - 4]
push edi
push edx
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea eax, [esp + 0x1c]
lea ecx, [edi + 4]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebp
mov ecx, dword [esp + 0x14]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ecx
jl 0x4577fa
mov ecx, dword [esp + 0x18]
inc ecx
cmp cx, 0xe
mov dword [esp + 0x18], ecx
jle 0x4577cb
jmp 0x45813e
cmp al, 0xfa
jne 0x45813e
mov ebp, 4
push 0xfa
push ebp
lea ecx, [esp + 0x18]
call fcn.00531ad0
lea edx, [esp + 0x40]
push 2
lea eax, [esp + 0x34]
lea ecx, [edi + 0x78]
push edx
push eax
mov byte [esp + 0x40], 2
mov dword [esp + 0x44], ecx
call fcn.0043cb50
test ax, ax
jne 0x457a6a
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0xbc], 3
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0xbc], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x458172
lea ecx, [esp + 0x44]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 3
mov edx, dword [esp + 0x18]
cmp byte [edx], 0
je 0x457c3b
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
mov cl, bl
mov dl, byte [eax]
shr dl, cl
test dl, 1
je 0x457c23
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + eax + 0x57548c]
test al, al
je 0x457c23
mov byte [esp + 0x2c], al
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x2c]
push edx
push 5
call fcn.00531ad0
push 0
push 3
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x457ba7
mov ecx, esi
call fcn.0040a310
cmp eax, 1
jbe 0x457b0f
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x457b14
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x28], eax
jns 0x457b25
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00556a96
mov edx, dword [esi + 4]
add esp, 4
mov ebp, eax
mov ecx, esi
push ebp
push edi
push edx
call fcn.004052e0
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov ecx, dword [esi + 8]
add ebx, 4
push ebx
push ecx
push edi
mov ecx, esi
call fcn.004052e0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov ecx, dword [esp + 0x2c]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.0040a310
mov ebx, dword [esp + 0x24]
lea eax, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
mov ebp, 4
jmp 0x457c23
mov ecx, edi
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x457bf3
lea edx, [edi + 4]
mov ecx, esi
push edx
push edi
push edi
call fcn.004052e0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00405320
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.00405390
add esp, 0xc
jmp 0x457c20
push edi
lea ecx, [edi - 4]
push edi
push ecx
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebp
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
jl 0x457a99
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc edx
add ecx, 8
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jne 0x457a82
lea ecx, [esp + 0x40]
push 2
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov byte [esp + 0x40], 3
call fcn.0043cb50
test ax, ax
jne 0x457cde
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0xbc], 4
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0xbc], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x458172
lea ebp, [esp + 0x44]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 3
cmp byte [ebp], 0
je 0x457eaf
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [ebp]
mov cl, bl
shr al, cl
test al, 1
je 0x457e97
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx + edx + 0x57548c]
test al, al
je 0x457e97
mov byte [esp + 0x2c], al
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x2c]
push eax
push 5
call fcn.00531ad0
push 2
push 3
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x457e1a
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x457d83
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x457d83
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x457d88
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x28], eax
jns 0x457d99
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004052e0
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, esi
lea eax, [ebp + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebx, dword [esp + 0x24]
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esi + 8], ecx
jmp 0x457e97
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x457e66
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x457e93
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], 4
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
jl 0x457d0a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebp
add ecx, 8
dec eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x457cf6
lea ecx, [esp + 0x40]
push 2
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov byte [esp + 0x40], 4
call fcn.0043cb50
test ax, ax
jne 0x457f4e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0xbc], 5
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0xbc], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x458172
lea ebp, [esp + 0x44]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], 3
cmp byte [ebp], 0
je 0x45811f
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [ebp]
mov cl, bl
shr al, cl
test al, 1
je 0x458107
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx + edx + 0x57548c]
test al, al
je 0x458107
mov byte [esp + 0x2c], al
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x2c]
push eax
push 5
call fcn.00531ad0
push 1
push 3
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x45808a
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x457ff3
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x457ff3
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x457ff8
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x28], eax
jns 0x458009
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004052e0
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, esi
lea eax, [ebp + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebx, dword [esp + 0x24]
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esi + 8], ecx
jmp 0x458107
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x4580d6
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x458103
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], 4
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
jl 0x457f7a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
inc ebp
add ecx, 8
dec eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
jne 0x457f66
test esi, esi
je 0x458157
mov eax, dword [esi + 4]
test eax, eax
jne 0x45814d
xor esi, esi
jmp 0x45815b
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
jmp 0x45815b
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.00531940
mov ax, si
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret 8