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

Disassembly:
ror byte [ecx + 0x3b2c246c], 0xc8
mov dword [esp + 0x68], eax
jle 0x457682
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x54], eax
mov eax, 0xffffffbc
lea ebx, [esi + 0x48]
sub eax, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x45764a
mov esi, dword [edi + 0x9c]
mov eax, dword [esp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp esi, eax
jae 0x457147
mov eax, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x10], eax
add eax, eax
jmp 0x457166
mov eax, dword [ebp + 0x20]
xor edx, edx
div ecx
test edx, edx
mov dword [esp + 0x10], edx
jne 0x45715c
mov dword [esp + 0x10], ecx
mov edx, ecx
mov eax, edx
mov dword [esp + 0x60], 1
test esi, esi
jbe 0x457195
add eax, ecx
dec esi
imul esi, ecx
mov edx, dword [edi + 4]
push 0
push eax
mov eax, dword [ebx]
push esi
push eax
push edi
call dword [edx + 0x20]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov dword [esp + 0x78], 0
lea esi, [eax + ecx*4]
mov dword [esp + 0x4c], esi
jmp 0x4571b5
mov edx, dword [edi + 4]
push 0
push eax
mov eax, dword [ebx]
push 0
push eax
push edi
call dword [edx + 0x20]
add esp, 0x14
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], 1
mov esi, eax
mov ecx, dword [esp + 0x94]
mov edx, dword [edi + 0x1bc]
mov eax, dword [ecx + 0x70]
mov ecx, dword [esp + 0x54]
add eax, ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x4c]
mov cx, word [eax]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov cx, word [eax + 2]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov cx, word [eax + 0x10]
mov dword [esp + 0x7c], ecx
xor ecx, ecx
mov cx, word [eax + 0x20]
mov dword [esp + 0x74], ecx
xor ecx, ecx
mov cx, word [eax + 0x12]
mov dword [esp + 0x84], ecx
xor ecx, ecx
mov cx, word [eax + 4]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x5c]
add edx, eax
mov eax, dword [edx + ebx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x44], edx
test ecx, ecx
mov dword [esp + 0x30], eax
jle 0x45764a
jmp 0x45724c
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + eax*4]
test ecx, ecx
mov dword [esp + 0x24], edx
je 0x457261
test eax, eax
mov ecx, edx
je 0x457265
mov ecx, dword [esi + eax*4 - 4]
mov edi, dword [esp + 0x60]
test edi, edi
je 0x45727a
mov edi, dword [esp + 0x10]
dec edi
cmp eax, edi
jne 0x45727a
mov eax, edx
jmp 0x45727e
mov eax, dword [esi + eax*4 + 4]
movsx esi, word [edx]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x28], esi
movsx edi, word [ecx]
movsx ebx, word [eax]
dec edx
add eax, 0x80
add ecx, 0x80
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x64], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x98]
push 1
push eax
push ecx
call fcn.00455f60
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, edx
jae 0x45730e
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
movsx ecx, word [eax]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
movsx esi, word [edx + 0x80]
movsx ecx, word [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x457387
cmp word [esp + 0x9a], 0
jne 0x457387
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x6c]
sub eax, esi
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
shl edx, 2
js 0x45735c
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x45737b
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x45737b
lea eax, [edx - 1]
jmp 0x45737b
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x457379
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x457379
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0x9a], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x457404
cmp word [esp + 0xa8], 0
jne 0x457404
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edx
mov ebp, dword [esp + 0x7c]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
shl edx, 2
js 0x4573d9
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4573f8
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4573f8
lea eax, [edx - 1]
jmp 0x4573f8
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4573f6
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4573f6
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xa8], ax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x45748b
cmp word [esp + 0xb8], 0
jne 0x45748b
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
lea eax, [edx + edx]
mov edx, eax
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x1c]
add eax, edx
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
test edx, edx
jl 0x457460
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x45747f
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x45747f
lea eax, [edx - 1]
jmp 0x45747f
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x45747d
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x45747d
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xb8], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45750a
cmp word [esp + 0xaa], 0
jne 0x45750a
mov eax, dword [esp + 0x40]
sub eax, ebx
mov ebx, dword [esp + 0x38]
sub eax, ebx
add eax, edi
mov edi, dword [esp + 0x84]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, edi
test edx, edx
jl 0x4574e3
shl eax, 7
add eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x457502
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x457502
lea eax, [edx - 1]
jmp 0x457502
shl eax, 7
sub eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x457500
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x457500
lea eax, [edx - 1]
neg eax
mov word [esp + 0xaa], ax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x45758e
cmp word [esp + 0x9c], 0
jne 0x45758e
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x80]
lea eax, [edx + edx]
mov edx, eax
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x58]
add eax, edx
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, edi
test edx, edx
jl 0x457567
shl eax, 7
add eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x457586
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x457586
lea eax, [edx - 1]
jmp 0x457586
shl eax, 7
sub eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x457584
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x457584
lea eax, [edx - 1]
neg eax
mov word [esp + 0x9c], ax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x9c]
push ecx
push edx
push ebp
push eax
call dword [esp + 0xa4]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, 0x80
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x64]
add ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x5c]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x24]
add esp, 0x14
add eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x28], esi
cmp eax, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], eax
jbe 0x4572ca
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x44]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x457244
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x11c]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov ecx, dword [edi + 0x20]
inc eax
add edx, 0x18
add ebx, 4
add esi, 4
add ebp, 0x54
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x2c], ebp
jl 0x457109
mov esi, dword [edi + 0x9c]
mov edx, dword [edi + 0x13c]
inc esi
mov eax, esi
mov dword [edi + 0x9c], esi
cmp eax, edx
pop edi
sbb eax, eax
pop esi
pop ebp
add eax, 4
pop ebx
add esp, 0x108
ret