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

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x58
lea eax, [ecx - 2]
cmp ax, 0xe
ja 0x459775
mov eax, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov ebx, dword [eax]
xor eax, eax
mov dword [esp + 0xc], eax
movzx eax, cx
mov ecx, dword [esp + 0x64]
push esi
mov dword [esp + 0x24], eax
push edi
mov edi, dword [esp + 0x78]
mov esi, edi
cdq
add ebx, edi
mov dword [esp + 0x1c], eax
mov eax, edx
push eax
push dword [esp + 0x20]
mov dword [esp + 0x38], edi
push ebp
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], eax
call fcn.0057d180
lea ebp, [edi + 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp ebp, ebx
ja 0x459782
mov ecx, dword [esp + 0x28]
lea edx, [esi]
imul ecx, eax
mov esi, ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], esi
sub eax, ecx
mov al, byte [eax + 0x5b7f57]
mov byte [edx], al
mov al, byte [esp + 0x8c]
test al, al
je 0x4595eb
cmp word [esp + 0x74], 0xa
jne 0x4595eb
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 3
jne 0x4595eb
lea esi, [ebp + 1]
cmp esi, ebx
ja 0x45979c
mov byte [ebp], al
xor eax, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x459628
push dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
push dword [esp + 0x20]
mov dword [esp + 0x20], edx
push edx
push ecx
call fcn.0057d180
lea ebp, [esi + 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp ebp, ebx
ja 0x459782
jmp 0x459595
mov dl, byte [esp + 0x88]
mov dh, byte [esp + 0x80]
cmp dl, 0x30
jne 0x45969e
cmp dword [esp + 0x18], 0
jg 0x459655
jl 0x45964b
cmp dword [esp + 0x10], 0
jae 0x459655
mov ebp, dword [esp + 0x84]
dec ebp
jmp 0x45965c
mov ebp, dword [esp + 0x84]
test dh, dh
je 0x459676
mov eax, dword [esp + 0x74]
cmp ax, 8
jne 0x45966d
dec ebp
jmp 0x459676
cmp ax, 0x10
jne 0x459676
sub ebp, 2
mov eax, esi
sub eax, edi
cmp eax, ebp
jge 0x4596a5
nop
lea ecx, [esi + 1]
cmp ecx, ebx
ja 0x4597b6
mov eax, esi
mov esi, ecx
sub ecx, edi
mov dword [esp + 0x34], esi
mov byte [eax], 0x30
cmp ecx, ebp
jl 0x459680
jmp 0x4596a5
mov ebp, dword [esp + 0x84]
test dh, dh
je 0x4596e4
mov eax, dword [esp + 0x74]
cmp ax, 8
je 0x4596c7
cmp ax, 0x10
jne 0x4596e4
push 0
lea ecx, [esp + 0x34]
call fcn.0045a180
mov byte [eax], 0x78
push 0
lea ecx, [esp + 0x34]
call fcn.0045a180
mov dl, byte [esp + 0x88]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov byte [eax], 0x30
cmp dword [esp + 0x18], 0
jg 0x459706
jl 0x4596f4
cmp dword [esp + 0x10], 0
jae 0x459706
lea ecx, [esi + 1]
cmp ecx, ebx
ja 0x4597d0
mov eax, esi
mov esi, ecx
mov byte [eax], 0x2d
cmp dl, 0x30
je 0x45972a
mov eax, esi
sub eax, edi
cmp eax, ebp
jge 0x45972a
lea ecx, [esi + 1]
cmp ecx, ebx
ja 0x459804
mov eax, esi
mov esi, ecx
sub ecx, edi
mov byte [eax], dl
cmp ecx, ebp
jl 0x459713
mov ecx, dword [esp + 0x7c]
mov eax, esi
sub eax, edi
mov dword [ecx], eax
lea eax, [esi - 1]
cmp eax, ebx
ja 0x4597ea
lea edx, [esi - 1]
mov byte [esi], 0
cmp edi, edx
jae 0x45976b
lea esi, [edx - 1]
nop dword [eax]
mov ah, byte [edx]
cmp esi, ebx
ja 0x45981e
mov al, byte [edi]
mov ecx, edx
dec esi
mov byte [ecx], al
lea edx, [ecx - 1]
mov byte [edi], ah
inc edi
cmp edi, edx
jb 0x459750
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x68]
mov byte [eax], 0
xor al, al
add esp, 0x58
ret
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
push 0
lea ecx, [esp + 0x40]
call fcn.00464690
push 0x6607e4
lea eax, [esp + 0x40]
push eax
call fcn.0057f277
int3