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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xf8
mov esi, ecx
mov ecx, edx
mov ebp, dword [esp + 0x120]
mov eax, dword [esp + 0x138]
mov edi, dword [eax + 0x44]
mov byte [edi + 0xa8], 1
mov eax, dword [ebp*4 + 0x7b9ca0]
mov ebx, dword [edi + 0xc0]
mov dword [esp + 0xf4], ebx
mov ebx, dword [edi + 0x88]
mov edi, dword [edi + 0x8c]
mov edx, eax
sar edx, 2
shr edx, 0x1d
add edx, eax
sar edx, 3
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x124]
lea edx, [eax + eax]
add edx, edx
sub edx, eax
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
cdq
idiv ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x130]
test eax, eax
mov ebp, dword [esp + 0x48]
jl 0x42b8cf
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x124]
lea eax, [eax + edx - 1]
cmp edi, eax
jle 0x42b8cf
mov eax, dword [esp + 0x12c]
test eax, eax
jl 0x42b8cf
mov edi, dword [esp + 0x12c]
mov eax, dword [esp + 0x120]
lea eax, [eax + edi - 1]
cmp ebx, eax
jle 0x42b8cf
cmp esi, 0xffffffff
jne 0x42b030
mov esi, ecx
mov dword [esp + 0xc], esi
lea esi, [esp + 0x64]
mov dword [esp + 0x10], esi
lea edi, [esp + 0x6c]
mov dword [esp + 0x14], edi
lea eax, [esp + 0x74]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x3c], eax
movsx eax, byte [esp + 0x118]
movsx edx, byte [esp + 0x11c]
call fcn.0042a912
cmp dword [esp + 0x134], 0
je 0x42b4c7
mov eax, dword [esp + 0x124]
test eax, eax
jle 0x42b8c3
xor eax, eax
mov dword [esp + 0xac], eax
xor edx, edx
mov dword [esp + 0xec], edx
mov edi, dword [esp + 0x124]
lea esi, [edi - 1]
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x130]
imul eax, ebx
add eax, dword [esp + 0x12c]
lea edx, [edi + eax]
mov dword [esp + 0x54], edx
mov edx, ebx
neg edx
add edx, eax
mov ecx, dword [esp + 0x120]
mov esi, ecx
imul esi, ebx
imul edi, ebx
add edi, edx
lea ecx, [ecx - 1]
mov dword [esp + 0xf0], ecx
xor ecx, ecx
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa8], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebp
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0xac]
movzx esi, byte [esp + 0x64]
movzx eax, byte [esp + 0x68]
sub eax, esi
imul eax, ecx
cdq
idiv edi
add esi, eax
and esi, 0xff
mov dword [esp + 0xe0], esi
movzx ebx, byte [esp + 0x6c]
movzx eax, byte [esp + 0x70]
sub eax, ebx
imul eax, ecx
cdq
idiv edi
add ebx, eax
movzx ebx, bl
mov dword [esp + 0xe4], ebx
movzx ebx, byte [esp + 0x74]
movzx eax, byte [esp + 0x78]
sub eax, ebx
imul eax, ecx
cdq
idiv edi
add ebx, eax
movzx ebx, bl
mov dword [esp + 0xe8], ebx
movzx esi, byte [esp + 0x7c]
movzx eax, byte [esp + 0x80]
sub eax, esi
imul eax, ecx
cdq
idiv edi
add esi, eax
and esi, 0xff
movzx ebp, byte [esp + 0x84]
movzx eax, byte [esp + 0x88]
sub eax, ebp
imul eax, ecx
cdq
idiv edi
add ebp, eax
and ebp, 0xff
movzx ebx, byte [esp + 0x8c]
movzx eax, byte [esp + 0x90]
sub eax, ebx
imul eax, ecx
cdq
idiv edi
add ebx, eax
movzx ebx, bl
mov dword [esp + 0x9c], ebx
mov eax, dword [esp + 0x50]
cdq
mov ebx, dword [esp + 0x58]
idiv ebx
imul eax, dword [esp + 0x48]
mov edx, dword [0x5d9b64]
cmp eax, dword [edx*4 + 0x841fd8]
jge 0x42b49e
mov edx, dword [edx*4 + 0x841fb8]
add edx, eax
mov dword [esp + 0xd0], edx
mov eax, dword [esp + 0x120]
test eax, eax
jle 0x42b49e
xor ebx, ebx
sub esi, dword [esp + 0xe0]
sub ebp, dword [esp + 0xe4]
mov edx, dword [esp + 0x9c]
sub edx, dword [esp + 0xe8]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
lea edx, [edx + eax]
mov dword [esp + 0x98], edx
xor edx, edx
mov dword [esp + 0x94], edx
xor edx, edx
mov dword [esp + 0xdc], edx
xor edx, edx
mov dword [esp + 0xd8], edx
xor edx, edx
mov dword [esp + 0xd4], edx
xor edx, edx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xb4], esi
mov dword [esp + 0xac], ecx
mov edi, dword [esp + 0xd8]
movsx edx, byte [esp + 0x11c]
test edx, edx
jne 0x42b30a
mov edx, dword [esp + 0x98]
lea ebp, [edx + edx]
add ebp, ebp
mov dword [esp + 0xec], ebp
jmp 0x42b36d
movsx edx, byte [esp + 0x11c]
cmp edx, 1
je 0x42b910
movsx edx, byte [esp + 0x11c]
cmp edx, 2
je 0x42b8dc
movsx edx, byte [esp + 0x11c]
cmp edx, 3
jne 0x42b36d
mov ebp, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
lea edx, [edx + ebp]
add edx, dword [esp + 0xa0]
mov esi, dword [esp + 0xb8]
imul esi, dword [esp + 0x94]
add edx, esi
add edx, edx
add edx, edx
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0xf4]
mov ebp, dword [esp + 0xec]
lea edx, [edx + ebp]
mov dword [esp + 0xc8], edx
mov eax, edi
cdq
mov esi, dword [esp + 0xf0]
idiv esi
add eax, dword [esp + 0xe0]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd4]
cdq
idiv esi
add eax, dword [esp + 0xe4]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xcc]
cdq
idiv esi
add eax, dword [esp + 0xe8]
mov dword [esp + 0xbc], eax
mov edx, ebx
sar edx, 2
shr edx, 0x1d
add edx, ebx
sar edx, 3
mov ebp, dword [esp + 0xd0]
movzx ebp, byte [edx + ebp]
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
neg eax
add eax, 7
mov ecx, eax
sar ebp, cl
and ebp, 1
neg ebp
inc ebp
je 0x42b42f
mov edx, dword [esp + 0xbc]
mov ebp, dword [esp + 0xc8]
mov byte [ebp], dl
mov edx, dword [esp + 0xc0]
mov byte [ebp + 1], dl
mov edx, dword [esp + 0xc4]
mov byte [ebp + 2], dl
mov byte [ebp + 3], 0xff
dec dword [esp + 0x94]
mov edx, dword [esp + 0xdc]
add edx, dword [esp + 0xb8]
mov dword [esp + 0xdc], edx
inc dword [esp + 0x98]
add edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xd4]
add ebp, dword [esp + 0xb0]
mov dword [esp + 0xd4], ebp
mov esi, dword [esp + 0xcc]
add esi, dword [esp + 0x9c]
mov dword [esp + 0xcc], esi
inc ebx
mov edx, dword [esp + 0x120]
cmp ebx, edx
jl 0x42b2e9
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0xac]
add dword [esp + 0x50], 0x64
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0xb8]
mov dword [esp + 0x4c], eax
inc ecx
mov edx, dword [esp + 0x124]
cmp ecx, edx
jl 0x42b169
jmp 0x42b8c3
mov dword [esp + 0x5c], 0xff000000
mov eax, dword [esp + 0x124]
test eax, eax
jle 0x42b8c3
xor eax, eax
mov dword [esp + 0xe0], eax
xor edx, edx
mov dword [esp + 0xec], edx
mov edi, dword [esp + 0x124]
lea esi, [edi - 1]
mov dword [esp + 0x9c], esi
mov eax, dword [esp + 0x130]
imul eax, ebx
add eax, dword [esp + 0x12c]
lea edx, [edi + eax]
mov dword [esp + 0xf0], edx
mov edx, ebx
neg edx
add edx, eax
mov ecx, dword [esp + 0x120]
mov esi, ecx
imul esi, ebx
imul edi, ebx
add edi, edx
lea ecx, [ecx - 1]
mov dword [esp + 0xa0], ecx
xor ecx, ecx
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xe4], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], edx
mov dword [esp + 0xe8], eax
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x64]
movzx eax, byte [esp + 0x68]
sub eax, ebx
imul eax, esi
cdq
idiv ebp
add ebx, eax
movzx ebx, bl
mov dword [esp + 0xc0], ebx
movzx ecx, byte [esp + 0x6c]
movzx eax, byte [esp + 0x70]
sub eax, ecx
imul eax, esi
cdq
idiv ebp
add ecx, eax
movzx ecx, cl
mov dword [esp + 0xb4], ecx
movzx ecx, byte [esp + 0x74]
movzx eax, byte [esp + 0x78]
sub eax, ecx
imul eax, esi
cdq
idiv ebp
add ecx, eax
movzx ecx, cl
mov dword [esp + 0xac], ecx
movzx ebx, byte [esp + 0x7c]
movzx eax, byte [esp + 0x80]
sub eax, ebx
imul eax, esi
cdq
idiv ebp
add ebx, eax
movzx ebx, bl
movzx ecx, byte [esp + 0x84]
movzx eax, byte [esp + 0x88]
sub eax, ecx
imul eax, esi
cdq
idiv ebp
add ecx, eax
movzx ecx, cl
movzx edi, byte [esp + 0x8c]
movzx eax, byte [esp + 0x90]
sub eax, edi
imul eax, esi
cdq
idiv ebp
add edi, eax
and edi, 0xff
mov dword [esp + 0xa4], edi
mov eax, dword [esp + 0x54]
cdq
mov edi, dword [esp + 0x58]
idiv edi
imul eax, dword [esp + 0x48]
mov edx, dword [0x5d9b64]
cmp eax, dword [edx*4 + 0x841fd8]
jge 0x42b89f
mov edx, dword [edx*4 + 0x841fb8]
add edx, eax
mov dword [esp + 0xd0], edx
mov eax, dword [esp + 0x120]
test eax, eax
jle 0x42b89f
xor eax, eax
mov dword [esp + 0xbc], eax
sub ebx, dword [esp + 0xc0]
sub ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa4]
sub edx, dword [esp + 0xac]
mov dword [esp + 0xa4], edx
mov edi, dword [esp + 0xe8]
mov eax, dword [esp + 0x50]
lea eax, [edi + eax]
xor edx, edx
mov dword [esp + 0xb0], edx
xor edx, edx
mov dword [esp + 0xa8], edx
xor edx, edx
mov dword [esp + 0xc4], edx
xor edx, edx
mov dword [esp + 0xc8], edx
xor edx, edx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe0], esi
mov edi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0xbc]
movsx edx, byte [esp + 0x11c]
test edx, edx
jne 0x42b731
mov edx, dword [esp + 0xd4]
lea ebx, [edx + edx]
add ebx, ebx
mov dword [esp + 0xec], ebx
jmp 0x42b794
movsx edx, byte [esp + 0x11c]
cmp edx, 1
je 0x42b96a
movsx edx, byte [esp + 0x11c]
cmp edx, 2
je 0x42b936
movsx edx, byte [esp + 0x11c]
cmp edx, 3
jne 0x42b794
mov ebx, dword [esp + 0x94]
mov edx, dword [esp + 0xe0]
lea ebx, [edx + ebx]
add ebx, dword [esp + 0x98]
mov edx, dword [esp + 0xb8]
imul edx, dword [esp + 0xb0]
add ebx, edx
add ebx, ebx
add ebx, ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xc8], edi
mov eax, ebp
cdq
mov ebx, dword [esp + 0xa0]
idiv ebx
add eax, dword [esp + 0xc0]
movzx ecx, al
mov eax, edi
cdq
idiv ebx
add eax, dword [esp + 0xb4]
movzx edi, al
mov eax, dword [esp + 0xcc]
cdq
idiv ebx
add eax, dword [esp + 0xac]
movzx eax, al
shl ecx, 0x10
shl edi, 8
add ecx, edi
lea edx, [ecx + eax - 0x1000000]
mov dword [esp + 0x60], edx
mov edx, esi
sar edx, 2
shr edx, 0x1d
add edx, esi
sar edx, 3
mov ebx, dword [esp + 0xd0]
movzx edi, byte [edx + ebx]
mov eax, esi
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
neg eax
add eax, 7
mov ecx, eax
sar edi, cl
and edi, 1
add edi, edi
add edi, edi
neg edi
mov edx, dword [esp + edi + 0x60]
mov edi, dword [esp + 0xf4]
mov ebx, dword [esp + 0xec]
mov dword [ebx + edi], edx
dec dword [esp + 0xb0]
mov edx, dword [esp + 0xa8]
add edx, dword [esp + 0xb8]
mov dword [esp + 0xa8], edx
inc dword [esp + 0xd4]
add ebp, dword [esp + 0xd8]
mov edi, dword [esp + 0xc8]
add edi, dword [esp + 0xdc]
mov edx, dword [esp + 0xcc]
add edx, dword [esp + 0xa4]
mov dword [esp + 0xcc], edx
inc esi
mov edx, dword [esp + 0x120]
cmp esi, edx
jl 0x42b710
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0xe0]
add dword [esp + 0x54], 0x64
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0xb8]
mov dword [esp + 0x50], eax
inc esi
mov edx, dword [esp + 0x124]
cmp esi, edx
jl 0x42b57e
mov eax, dword [esp + 0x138]
call fcn.00411000
xor eax, eax
add esp, 0xf8
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0xac]
neg edx
imul edx, dword [esp + 0xb8]
add edx, dword [esp + 0xa4]
add edx, dword [esp + 0x120]
sub edx, ebx
lea ebp, [edx*4 - 4]
mov dword [esp + 0xec], ebp
jmp 0x42b36d
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0xac]
mov ebp, dword [esp + 0xdc]
lea esi, [edx + ebp - 1]
add esi, esi
add esi, esi
mov dword [esp + 0xec], esi
jmp 0x42b36d
mov edx, dword [esp + 0xe0]
neg edx
imul edx, dword [esp + 0xb8]
add edx, dword [esp + 0xe4]
add edx, dword [esp + 0x120]
sub edx, esi
lea ebx, [edx*4 - 4]
mov dword [esp + 0xec], ebx
jmp 0x42b794
mov edx, dword [esp + 0xf0]
sub edx, dword [esp + 0xe0]
mov ebx, dword [esp + 0xa8]
lea edx, [edx + ebx - 1]
add edx, edx
add edx, edx
mov dword [esp + 0xec], edx
jmp 0x42b794