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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
mov esi, dword [esp + 0xac]
lea eax, [ebp + 1]
lea ebx, [eax*4]
add edi, ebx
mov dword [esp + 0x34], edi
test eax, eax
jne 0x424290
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], 1
mov dword [eax], 1
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x6c], eax
lea esi, [esi]
mov eax, dword [esi]
test eax, eax
je 0x4247aa
mov edi, dword [esp + 0xb0]
mov edx, dword [edi]
test edx, edx
je 0x4247c6
cmp eax, edx
je 0x424560
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.00426000
mov edi, dword [esp + 0xa0]
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4246e2
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x4245f7
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x424251
mov edx, dword [esp + 0x34]
jmp 0x424245
sub eax, 1
je 0x42424d
mov edi, dword [edx + eax*4 - 4]
test edi, edi
je 0x424240
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00418440
mov eax, dword [esp + 0xa8]
mov dword [eax], edi
add esp, 0x8c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [eax + eax*2]
mov dword [esp + 4], 0
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, edi
add edi, ebx
mov dword [esp + 0x20], 1
mov dword [eax], 1
mov eax, dword [esp + 0xa0]
add ebx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x6c], eax
cmp ebp, 1
jle 0x4241d0
mov edi, esi
jmp 0x42437b
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x10], ebp
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
call fcn.00424800
mov ebx, dword [esp + 0x30]
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.004255a0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x30], eax
mov eax, edi
mov edi, esi
mov dword [esp + 0x2c], eax
cmp ebp, 1
jle 0x4244d8
lea edx, [ebp + 0x3fffffff]
mov ebx, dword [esp + 0xb0]
mov eax, dword [edi + edx*4]
lea esi, [edx*4]
mov edx, dword [ebx + edx*4]
mov ebx, eax
or ebx, edx
js 0x4244e0
bsr ebx, ebx
mov ecx, 0x20
xor ebx, 0x1f
sub ecx, ebx
mov dword [esp + 0x24], ecx
cmp ebp, 2
je 0x424500
mov ecx, ebx
mov dword [esp + 0xb4], ebp
mov ebp, dword [esp + 0x24]
shl eax, cl
mov dword [esp + 0x28], eax
mov eax, dword [edi + esi - 4]
mov ecx, ebp
shr eax, cl
mov ecx, eax
mov eax, dword [esp + 0x28]
or eax, ecx
mov ecx, ebp
mov ebp, dword [edi + esi - 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + esi - 8]
shr eax, cl
mov ecx, ebx
shl ebp, cl
mov ecx, ebp
mov ebp, dword [esp + 0x24]
or ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xb0]
mov ecx, dword [ecx + esi - 4]
mov eax, ecx
mov ecx, ebx
shl edx, cl
mov ecx, ebp
mov dword [esp + 0x38], eax
shr eax, cl
mov ecx, dword [esp + 0xb0]
or edx, eax
mov eax, dword [esp + 0x38]
mov esi, dword [ecx + esi - 8]
mov ecx, ebp
mov ebp, dword [esp + 0xb4]
shr esi, cl
mov ecx, ebx
shl eax, cl
or esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x28]
lea ebx, [esp + 0x50]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004251d0
test eax, eax
jne 0x424300
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], ebp
mov dword [esp + 0x10], 0x423e20
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
mov dword [esp], edi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], eax
call fcn.00423910
mov ebp, eax
test eax, eax
je 0x424550
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
cmp ebp, 1
jg 0x42437b
mov esi, edi
jmp 0x4241d0
mov ecx, dword [edi + esi - 4]
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x28], ecx
mov esi, dword [ebx + esi - 4]
jmp 0x42443b
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov ecx, ebx
shl eax, cl
movzx ecx, byte [esp + 0x24]
mov edx, esi
shr edx, cl
mov ecx, ebx
or eax, edx
mov edx, dword [esp + 0xb0]
shl esi, cl
mov dword [esp + 0x28], esi
mov esi, dword [edx]
mov edx, dword [edx + 4]
shl edx, cl
movzx ecx, byte [esp + 0x24]
mov dword [esp + 0x38], edx
mov edx, esi
shr edx, cl
mov ecx, edx
mov edx, dword [esp + 0x38]
or edx, ecx
mov ecx, ebx
shl esi, cl
jmp 0x42443b
mov eax, dword [esp + 0x64]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0xa0]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov dword [edi], eax
mov eax, dword [esp + 0x20]
jmp 0x42458c
mov edi, dword [edx + eax*4]
cmp dword [ecx + eax*4], edi
jne 0x42473d
sub eax, 1
jns 0x424580
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov esi, dword [eax + edi*4 - 4]
test esi, esi
jne 0x4245bf
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
lea esi, [esi]
sub eax, 1
mov ecx, dword [edx + eax*4 - 4]
test ecx, ecx
je 0x4245b0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00418440
mov eax, dword [esp + 0xa8]
mov dword [eax], edi
add esp, 0x8c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jle 0x4247eb
neg edx
xor ebx, ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00418c50
mov dword [esp + 8], edi
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call fcn.00418d07
mov ecx, esi
mov edx, edi
or ecx, eax
je 0x424699
mov edx, dword [esp + 0xa4]
xor ecx, ecx
add eax, esi
mov esi, edi
setb cl
lea edi, [edi*4]
mov dword [edx + esi*4], eax
mov eax, esi
lea edx, [esi + 1]
test ecx, ecx
je 0x4247e2
mov esi, dword [esp + 0xa4]
add eax, 2
mov dword [esp + 0x20], eax
mov edx, eax
mov dword [esi + edi + 4], 1
mov eax, dword [esp + 0xa4]
mov esi, dword [eax + edx*4 - 4]
test esi, esi
jne 0x4246c7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xa4]
lea esi, [esi]
nop
sub eax, 1
mov ecx, dword [edx + eax*4 - 4]
test ecx, ecx
je 0x4246b8
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x20]
mov eax, edi
neg eax
test ebx, ebx
cmove eax, edi
mov edi, dword [esp + 0xa8]
mov dword [edi], eax
jmp 0x424279
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x424709
mov edx, dword [esp + 0xb8]
jmp 0x4246fd
sub eax, 1
je 0x424705
mov ebp, dword [edx + eax*4 - 4]
test ebp, ebp
je 0x4246f8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb8]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00418440
mov eax, edi
mov edi, dword [esp + 0xa8]
neg eax
mov dword [edi], eax
jmp 0x424279
ja 0x424591
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x424771
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xb8]
jmp 0x424765
sub eax, 1
je 0x42476d
mov ebx, dword [edx + eax*4 - 4]
test ebx, ebx
je 0x424760
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb8]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00418440
mov eax, edi
mov edi, dword [esp + 0xa8]
neg eax
mov dword [edi], eax
mov eax, 1
jmp 0x424554
mov dword [esp + 8], str.ap_0____0
mov dword [esp + 4], 0xf9
mov dword [esp], str.gcdext_lehmer.c
call fcn.004185f0
mov dword [esp + 8], str.bp_0____0
mov dword [esp + 4], 0xfa
mov dword [esp], str.gcdext_lehmer.c
call fcn.004185f0
mov dword [esp + 0x20], edx
jmp 0x424699
neg eax
mov ebx, 1
mov dword [esp + 0x4c], eax
jmp 0x424607