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

Disassembly:
sub esp, 0x84
mov eax, dword [0x52f568]
add eax, 0xa00
push ebx
mov dword [esp + 0x60], eax
push esi
mov dword [esp + 8], 0xa
mov dword [esp + 0x20], 0x52f739
push edi
push ebp
xor ecx, ecx
mov eax, dword [esp + 0x28]
cmp dword [eax], ecx
jle 0x402d76
xor edx, edx
mov dl, byte [eax - 3]
mov dword [esp + 0x14], edx
xor edx, edx
mov dl, byte [eax - 2]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x18], edx
xor edx, edx
mov dl, byte [eax - 1]
mov dword [esp + 0x68], ecx
mov eax, 0x2710
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x14]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x18]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x14]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x18]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, 0x28
mov dword [esp + 0x84], ecx
mov dword [esp + 0x34], eax
mov eax, 0xff
cmp dword [esp + 0x34], eax
jle 0x402abb
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov ecx, 0xff
add eax, 0x28
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x1c]
add eax, 0x28
mov dword [esp + 0x38], eax
cmp eax, ecx
jle 0x402ae1
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2 + 0x64]
mov eax, 0xff
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jle 0x402afa
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax*2 + 0x64]
mov eax, 0xff
mov dword [esp + 0x40], ecx
cmp ecx, eax
jle 0x402b13
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax*2 + 0x64]
mov eax, 0xff
mov dword [esp + 0x44], ecx
cmp ecx, eax
jle 0x402b2c
mov dword [esp + 0x44], eax
mov eax, dword [0x52f568]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x24], 0x52f739
lea edx, [ecx + eax + 0xa00]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
cmp dword [edx], 0
jle 0x402d1f
xor eax, eax
xor ecx, ecx
mov al, byte [edx - 3]
mov cl, byte [edx - 2]
xor ebx, ebx
mov edi, eax
mov bl, byte [edx - 1]
sub edi, dword [esp + 0x70]
jns 0x402b76
neg edi
mov edx, ecx
sub edx, dword [esp + 0x74]
jns 0x402b80
neg edx
mov esi, ebx
sub esi, dword [esp + 0x78]
jns 0x402b8a
neg esi
add edx, esi
add edx, edi
cmp dword [esp + 0x48], edx
jle 0x402ba0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov dword [esp + 0x64], esi
mov edi, eax
sub edi, dword [esp + 0x7c]
jns 0x402baa
neg edi
mov edx, ecx
sub edx, dword [esp + 0x80]
jns 0x402bb7
neg edx
mov esi, ebx
sub esi, dword [esp + 0x84]
jns 0x402bc4
neg esi
add edx, esi
add edx, edi
cmp dword [esp + 0x4c], edx
jle 0x402bda
mov esi, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x68], esi
mov edi, eax
sub edi, dword [esp + 0x34]
jns 0x402be4
neg edi
mov edx, ecx
sub edx, dword [esp + 0x88]
jns 0x402bf1
neg edx
mov esi, ebx
sub esi, dword [esp + 0x38]
jns 0x402bfb
neg esi
add edx, esi
add edx, edi
cmp dword [esp + 0x50], edx
jle 0x402c11
mov esi, dword [esp + 0x20]
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], esi
mov edi, eax
sub edi, dword [esp + 0x3c]
jns 0x402c1b
neg edi
mov edx, ecx
sub edx, dword [esp + 0x40]
jns 0x402c25
neg edx
mov esi, ebx
sub esi, dword [esp + 0x44]
jns 0x402c2f
neg esi
add edx, esi
add edx, edi
cmp dword [esp + 0x54], edx
jle 0x402c45
mov esi, dword [esp + 0x20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x60], esi
cmp dword [esp + 0x98], 0
je 0x402d29
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x10]
jge 0x402c69
mov eax, dword [esp + 0x6c]
mov cl, byte [eax + esi]
jmp 0x402d23
mov dword [esp + 0x58], 0x2710
mov dword [esp + 0x2c], 0xffffffff
add eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ebp, 0xa
mov edi, 0x531622
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x1c]
mov esi, 0x52f739
add eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp dword [esi], 0
jle 0x402d06
xor ecx, ecx
mov cl, byte [edi]
sub ecx, dword [esp + 0x8c]
jns 0x402ccc
neg ecx
xor edx, edx
mov dl, byte [edi - 1]
sub edx, dword [esp + 0x90]
jns 0x402cdc
neg edx
xor ebx, ebx
mov bl, byte [edi - 2]
sub ebx, eax
jns 0x402ce7
neg ebx
add edx, ebx
add ecx, edx
cmp dword [esp + 0x58], ecx
jle 0x402cfb
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x58], ecx
jmp 0x402d06
cmp dword [esp + 0x2c], 0xffffffff
jne 0x402d06
mov dword [esp + 0x2c], ebp
add edi, 4
add esi, 7
inc ebp
cmp esi, 0x52fe39
jb 0x402cb8
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x2c]
jmp 0x402d27
mov cl, byte [esp + 0x10]
mov eax, dword [esp + 0x30]
mov byte [eax], cl
add dword [esp + 0x30], 0x100
add dword [esp + 0x24], 7
inc dword [esp + 0x20]
cmp dword [esp + 0x24], 0x52fdad
jb 0x402b50
mov al, byte [esp + 0x5c]
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x60]
mov byte [ecx + 0x5303a0], al
mov al, byte [esp + 0x64]
mov byte [ecx + 0x530220], dl
mov dl, byte [esp + 0x68]
mov byte [ecx + 0x5222b0], al
mov byte [ecx + 0x5314c0], dl
jmp 0x402d9a
mov eax, dword [0x52f568]
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x10]
lea ecx, [ecx + eax + 0xa00]
mov eax, 0xec
mov byte [ecx], dl
add ecx, 0x100
dec eax
jne 0x402d8f
add dword [esp + 0x6c], 0x100
add dword [esp + 0x28], 7
inc dword [esp + 0x10]
cmp dword [esp + 0x28], 0x52fdad
jb 0x4029d8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x84
ret