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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 0x58], eax
cmp dword [esi + 0x18], 0
jne 0x46f410
push dword [esi + 0xc]
push dword [esi + 0x14]
push dword [esi + 4]
call fcn.0046c7d0
add esp, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov ebx, esi
lea edi, [eax + eax*2]
shl eax, 2
lea esi, [eax + eax*2]
push esi
push 8
push 1
call fcn.00436250
add esp, 0xc
test edi, edi
jne 0x46f44e
push 0x48
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push 0x4f3436
mov ebp, ebx
mov ebx, eax
call fcn.004ad8b3
mov eax, ebx
mov ebx, ebp
add esp, 0xc
mov dword [eax], edi
mov edi, eax
add eax, 8
mov dword [edi + 4], eax
push esi
push eax
call fcn.00464d20
add esp, 8
mov esi, dword [edi]
mov dword [esp + 0x1c], edi
mov ebp, dword [edi + 4]
push dword [ebx + 0x10]
push dword [esp + 0x78]
push dword [ebx + 4]
call fcn.0046c7d0
add esp, 0xc
mov ecx, eax
mov eax, dword [ebx + 4]
mov ebx, dword [eax + 8]
cmp esi, ebx
jae 0x46f4a6
push 0x2bb
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.len___pool__nw
mov edi, ecx
call fcn.004ad8b3
mov ecx, edi
add esp, 0xc
mov ebx, esi
mov dword [esp + 8], ecx
mov edi, esi
sub edi, ebx
cmp edi, esi
cmovae edi, esi
lea eax, [ebp + ebx*4]
mov dword [esp + 4], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov esi, dword [ecx]
cmp ebx, esi
cmovb esi, ebx
lea eax, [esi*4]
push eax
push dword [ecx + 4]
push ebp
call fcn.004a08d0
add esp, 0xc
mov dword [esp + 0x10], ebx
sub ebx, esi
shl ebx, 2
lea ecx, [esi*4]
add ecx, ebp
push ebx
push ecx
call fcn.00464d20
add esp, 8
push dword [esp + 0x74]
mov eax, dword [esp + 0xc]
push eax
push eax
mov ebx, eax
mov esi, dword [esp + 0x7c]
push dword [esi + 4]
call fcn.0046c1a0
add esp, 0x10
lea eax, [esp + 0x50]
push eax
push ebx
push eax
push dword [esi + 4]
call fcn.0046c1a0
add esp, 0x10
mov eax, dword [esi + 4]
mov esi, dword [eax + 8]
mov eax, esi
cmp edi, esi
jae 0x46f556
push 0x2bb
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.len___pool__nw
call fcn.004ad8b3
add esp, 0xc
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, edi
mov ebx, edi
sub ebx, eax
cmp ebx, edi
cmovae ebx, edi
mov ecx, dword [esp + 4]
lea edi, [ecx + eax*4]
mov dword [esp], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
cmp ebx, esi
jae 0x46f58e
push 0x2bb
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.len___pool__nw
call fcn.004ad8b3
add esp, 0xc
mov esi, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax]
cmp esi, ebx
cmovb ebx, esi
lea ecx, [ebx*4]
push ecx
push dword [eax + 4]
push edi
call fcn.004a08d0
add esp, 0xc
sub esi, ebx
shl esi, 2
lea eax, [edi + ebx*4]
mov edi, dword [esp + 0x70]
push esi
push eax
call fcn.00464d20
add esp, 8
cmp dword [edi + 8], 0
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov esi, dword [esp]
je 0x46f9a6
cmp esi, eax
cmovb eax, esi
lea ecx, [eax*4]
mov dword [esp + 0x2c], ecx
sub esi, eax
shl esi, 2
mov dword [esp + 0x28], esi
lea eax, [edx + eax*4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xfffffffe
mov dword [esp + 0x3c], eax
lea eax, [ecx*4 + 4]
add eax, ebp
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], ebp
jmp 0x46f653
mov edx, dword [ebp + eax*4]
xor edx, ecx
and edx, edi
xor edx, ecx
mov dword [ebp + eax*4], edx
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x38]
cmp eax, dword [edi + 8]
mov edx, dword [esp + 4]
jae 0x46f9a6
mov esi, eax
push dword [esp + 0x2c]
push ebp
push edx
call fcn.004a08d0
add esp, 0xc
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.00464d20
add esp, 8
mov dword [esp + 0x34], esi
lea eax, [esi + 1]
mov esi, eax
mov dword [esp + 0x38], eax
cmp eax, dword [edi + 8]
lea ebp, [esp + 0x48]
jae 0x46f6a6
nop
nop
nop
nop
nop
nop
nop
push ebp
push ebp
push ebp
push dword [edi + 4]
call fcn.0046c1a0
add esp, 0x10
add esi, 1
cmp esi, dword [edi + 8]
jb 0x46f690
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xc], ecx
mov edi, dword [ecx]
mov edx, dword [esp]
cmp edx, edi
mov ecx, edi
cmova ecx, edx
test ecx, ecx
mov dword [esp + 0x30], eax
je 0x46f750
xor eax, eax
mov ebp, 0
cmp ecx, 1
je 0x46f76b
mov dword [esp + 0x20], ecx
mov ebx, ecx
and ebx, 0xfffffffe
xor eax, eax
xor ecx, ecx
jmp 0x46f6fe
xor edx, esi
or eax, edx
add ecx, 1
cmp ecx, ebx
mov edx, dword [esp]
je 0x46f760
mov ebp, ecx
mov ecx, 0
cmp edx, ebp
jbe 0x46f711
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + ebp*4 - 4]
xor esi, esi
mov edx, 0
cmp edi, ebp
jbe 0x46f726
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 4]
mov edx, dword [edx + ebp*4]
xor edx, ecx
lea ecx, [ebp + 1]
cmp dword [esp], ecx
jbe 0x46f737
mov esi, dword [esp + 0x14]
mov esi, dword [esi + ebp*4]
or eax, edx
xor edx, edx
cmp edi, ecx
jbe 0x46f6f0
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 4]
mov edx, dword [edx + ebp*4 + 4]
jmp 0x46f6f0
xor eax, eax
mov esi, dword [esp + 0x74]
jmp 0x46f799
add ebp, 2
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x20]
test cl, 1
mov esi, dword [esp + 0x74]
je 0x46f799
xor ecx, ecx
mov edx, 0
cmp dword [esp], ebp
jbe 0x46f787
mov edx, dword [esp + 4]
mov edx, dword [edx + ebp*4]
cmp edi, ebp
jbe 0x46f795
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebp*4]
xor ecx, edx
or eax, ecx
mov ecx, eax
shr ecx, 1
and eax, 1
or eax, ecx
cmp dword [esp + 0x34], 0
je 0x46f8d0
cmp eax, 1
sbb edi, edi
lea eax, [esp + 0x40]
push eax
push ebx
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x3c]
call fcn.0046c1a0
add esp, 0x10
mov ecx, dword [ebx]
test ecx, ecx
je 0x46f820
xor eax, eax
jmp 0x46f7f3
xor esi, edx
and esi, edi
xor esi, edx
mov dword [ebp + eax*4], esi
add eax, 1
mov ecx, dword [ebx]
cmp eax, ecx
jae 0x46f820
mov edx, 0
cmp dword [esp], eax
jbe 0x46f804
mov edx, dword [esp + 4]
mov edx, dword [edx + eax*4]
xor esi, esi
mov ebp, dword [ebx + 4]
cmp ecx, eax
jbe 0x46f7e0
mov esi, dword [ebp + eax*4]
jmp 0x46f7e0
lea ebp, [esp + 0x40]
push ebp
push ebp
push ebp
mov esi, dword [esp + 0x7c]
push dword [esi + 4]
call fcn.0046c1a0
add esp, 0x10
push ebp
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esi + 4]
call fcn.0046c1a0
add esp, 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov ebp, dword [esp + 0x18]
mov esi, dword [esp]
je 0x46f63e
xor eax, eax
cmp ecx, 1
je 0x46f987
xor ecx, ecx
jmp 0x46f88e
mov esi, dword [ebp + eax*4 + 4]
xor esi, edx
and esi, edi
xor esi, edx
mov dword [ebp + eax*4 + 4], esi
add ecx, 1
cmp ecx, dword [esp + 0x3c]
mov esi, dword [esp]
je 0x46f980
mov eax, ecx
mov ecx, 0
cmp esi, eax
jbe 0x46f8a1
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + eax*4 - 4]
mov edx, dword [ebp + eax*4]
xor edx, ecx
and edx, edi
xor edx, ecx
mov dword [ebp + eax*4], edx
lea ecx, [eax + 1]
xor edx, edx
cmp esi, ecx
jbe 0x46f870
mov edx, dword [esp + 0x14]
mov edx, dword [edx + eax*4]
jmp 0x46f870
mov edx, dword [esi]
cmp edx, 3
mov ebx, 2
cmovae ebx, edx
mov dword [esp + 0xc], ebx
and ebx, 0xfffffffe
xor ecx, ecx
xor esi, esi
jmp 0x46f8f9
or ecx, ebp
add esi, 1
cmp esi, ebx
je 0x46f930
mov edi, esi
mov esi, 0
cmp edx, edi
jbe 0x46f90e
mov esi, dword [esp + 0x74]
mov esi, dword [esi + 4]
mov esi, dword [esi + edi*4]
or ecx, esi
lea esi, [edi + 1]
xor ebp, ebp
cmp edx, esi
jbe 0x46f8f0
mov ebp, dword [esp + 0x74]
mov ebp, dword [ebp + 4]
mov ebp, dword [ebp + edi*4 + 4]
jmp 0x46f8f0
test byte [esp + 0xc], 1
je 0x46f94d
lea ebx, [edi + 2]
xor esi, esi
cmp edx, ebx
jbe 0x46f94b
mov edx, dword [esp + 0x74]
mov edx, dword [edx + 4]
mov esi, dword [edx + edi*4 + 8]
or ecx, esi
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x18]
test eax, eax
sete al
mov edx, ecx
shr edx, 1
and ecx, 1
or ecx, edx
sete cl
or cl, al
movzx eax, cl
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
jmp 0x46f63e
add eax, 2
mov ecx, dword [esp + 0x10]
test cl, 1
je 0x46f63e
xor ecx, ecx
cmp esi, eax
jbe 0x46f630
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + eax*4]
jmp 0x46f630
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
shl eax, 2
push eax
push dword [esi + 4]
call fcn.00464d20
add esp, 8
push 8
push esi
call fcn.00464d20
add esp, 8
push esi
call fcn.004362e0
add esp, 4
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0049e0f0
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret