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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x78]
test esi, esi
sete byte [esp + 0x34]
cmp ebx, 8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
jne 0x42d4e0
cmp byte [esp + 0x34], 0
je 0x42d4e0
test ebp, ebp
je 0x42d600
lea eax, [ebx + ebp]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea edi, [ebx + esi]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0042d300
add esi, ebp
js 0x42d8d0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 0xf
jle 0x42d4a2
mov eax, ebx
mov edx, esi
sar eax, 1
neg edx
lea ecx, [eax + esi]
mov dword [esp + 0x38], eax
lea edi, [eax + ebp]
shl eax, 2
mov dword [esp + 0x3c], edx
mov edx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 0x4c], ecx
add eax, edx
mov edx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0042edb0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov dword [esp], eax
mov dword [esp + 0x44], eax
call fcn.0042edb0
mov edx, dword [esp + 0x48]
lea edx, [edx + edx*2]
lea eax, [eax + edx + 4]
cmp eax, 8
ja case.default.0x42d56e
mov ecx, dword [esp + 0x4c]
jmp dword [eax*4 + 0x4ba058]
mov eax, 1
mov dword [esp + 0x3c], 0
cmp byte [esp + 0x34], 0
je 0x42d670
cmp dword [esp + 0x38], 8
jne 0x42d670
test ebp, ebp
jne 0x42d670
test eax, eax
lea ebp, [ebx*4]
je 0x42d900
mov eax, dword [esp + 0x28]
mov edx, 0x40
lea esi, [eax + ebp]
test esi, 1
mov edi, esi
jne 0x42d96d
test edi, 2
jne 0x42d95c
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x42d5ec
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
and edx, 1
je 0x42d5f4
mov byte [edi], 0
mov edi, esi
jmp 0x42d91d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00435d20
mov dword [esp], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 4], esi
call fcn.0042ced0
mov edx, ebp
mov eax, dword [esp + 0x28]
neg edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov dword [esp], edi
call fcn.0042ced0
xor eax, eax
cmp byte [esp + 0x34], 0
mov dword [esp + 0x3c], 0
jne 0x42d58d
lea esi, [esi]
mov edi, dword [esp + 0x28]
test eax, eax
lea eax, [ebx*4]
mov dword [esp + 0x48], eax
lea edi, [edi + ebx*8]
mov dword [esp + 0x34], edi
jne 0x42d8b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, edx
add edi, eax
mov eax, dword [esp + 0x34]
add ecx, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, edi
call fcn.0042d460
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], 0
call fcn.0042d460
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp + 0x24], eax
call fcn.0042d460
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00435ac0
mov dword [esp + 0xc], ebx
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42d890
mov eax, dword [esp + 0x28]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00435bf0
sub esi, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
add eax, ebp
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.00435ac0
add esi, eax
je 0x42d4d4
add ebx, dword [esp + 0x38]
lea edx, [ebp + ebx*4]
mov eax, dword [edx]
add eax, esi
cmp esi, eax
mov dword [edx], eax
jbe 0x42d4d4
add edx, 4
add dword [edx], 1
je 0x42d7a6
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov dword [esp], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
call fcn.0042ced0
mov edx, ebp
mov eax, dword [esp + 0x28]
neg edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov dword [esp], edi
call fcn.0042ced0
xor eax, eax
mov dword [esp + 0x3c], 1
jmp 0x42d582
mov eax, dword [esp + 0x3c]
mov dword [esp], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
call fcn.0042ced0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
add eax, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.0042ced0
xor eax, eax
mov dword [esp + 0x3c], 0
jmp 0x42d582
mov dword [esp], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 4], esi
call fcn.0042ced0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
add eax, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.0042ced0
xor eax, eax
mov dword [esp + 0x3c], 1
jmp 0x42d582
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00435ac0
add esi, eax
jmp 0x42d76a
mov edi, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
add edi, eax
mov dword [esp], edi
call sub.msvcrt.dll_memset
jmp 0x42d6c2
mov eax, dword [esp + 0x20]
add ebx, edi
neg esi
add ebx, ebp
shl esi, 2
mov dword [esp + 0x78], esi
lea eax, [eax + ebx*4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_memset
mov esi, dword [esp + 0x28]
mov eax, esi
add eax, dword [esp + 0x2c]
lea edi, [esi + ebp]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00435d20
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], esi
add ebp, esi
mov dword [esp + 4], eax
call fcn.00435d20
mov eax, dword [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00435d20
jmp 0x42d722
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x42d5d5
mov byte [esi], 0
lea edi, [esi + 1]
mov dl, 0x3f
jmp 0x42d5c9