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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov ecx, dword [esp + 0x98]
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 0x80], eax
cmp dword [ecx], 0
jne 0x46b472
push 0x50a
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.x__nw___0
call fcn.004ad8b3
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov eax, dword [ecx + 4]
test byte [eax], 1
jne 0x46b491
push 0x50b
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.x__w_0___1
call fcn.004ad8b3
add esp, 0xc
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x46b4ba
push 0x50c
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push 0x4f9600
call fcn.004ad8b3
mov eax, dword [esp + 0xa8]
add esp, 0xc
add eax, 0x1f
shr eax, 5
mov esi, 1
cmovne esi, eax
lea edi, [esi*4]
push edi
push 8
push 1
call fcn.00436250
add esp, 0xc
mov dword [eax], esi
lea ecx, [eax + 8]
mov dword [esp + 0x38], eax
mov dword [eax + 4], ecx
push edi
push ecx
call fcn.00464d20
add esp, 8
lea eax, [esi + esi]
cmp esi, eax
cmovbe eax, esi
add eax, eax
lea ebx, [eax + eax*2]
lea eax, [esi + esi*2]
lea edi, [ebx + eax*2]
lea esi, [edi*4]
push esi
push 8
push 1
call fcn.00436250
add esp, 0xc
mov ebp, eax
mov dword [eax], edi
add eax, 8
mov dword [ebp + 4], eax
push esi
push eax
call fcn.00464d20
add esp, 8
mov esi, dword [ebp]
mov dword [esp + 0x40], ebp
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
cmp esi, ebx
jae 0x46b558
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 ebx, esi
mov ecx, esi
mov eax, ebx
mov dword [esp + 0x34], ebx
sub ecx, ebx
cmp ecx, esi
cmovae ecx, esi
mov esi, ecx
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 4]
mov dword [eax], 1
mov ecx, dword [esp + 0x9c]
cmp ecx, 2
jb 0x46bc53
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
add eax, 4
mov dword [esp + 0x44], eax
mov ebp, 1
mov dword [esp + 0x48], esi
jmp 0x46b5cb
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x20]
cmp ebp, ecx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
jae 0x46bc53
lea ecx, [ebp + 0x1f]
shr ecx, 5
mov eax, ecx
mov dword [esp + 0x28], ecx
cmp esi, ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x20], ebp
jae 0x46b60a
push 0x2bb
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.len___pool__nw
call fcn.004ad8b3
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov eax, esi
mov dword [esp + 0x10], eax
lea edx, [ebp + 0x1f]
add edx, ebp
shr edx, 5
mov dword [esp + 0x3c], edx
mov ebx, esi
sub ebx, eax
cmp ebx, esi
cmovae ebx, esi
mov dword [esp + 0x78], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x7c], ebp
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea eax, [esi*4]
push eax
push dword [ecx + 4]
push ebp
call fcn.004a08d0
add esp, 0xc
mov eax, dword [esp + 0x10]
sub eax, esi
shl eax, 2
lea ecx, [esi*4]
add ecx, ebp
push eax
push ecx
call fcn.00464d20
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add esp, 8
mov esi, ecx
shr esi, 5
cmp esi, edx
jae 0x46b6b2
mov eax, 0xffffffff
shl eax, cl
not eax
mov ecx, dword [esp + 0x1c]
and dword [ecx + esi*4], eax
lea eax, [esi + 1]
cmp eax, edx
jae 0x46b6b2
mov eax, dword [esp + 0x44]
lea eax, [eax + esi*4]
mov ecx, esi
not ecx
add ecx, edx
shl ecx, 2
push ecx
push 0
push eax
call fcn.004a0e50
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edi]
mov ebp, dword [esp + 0x28]
cmp eax, ebp
cmovae eax, ebp
mov ecx, dword [edi + 4]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov edi, eax
cmp ebx, eax
jae 0x46b6ef
push 0x2bb
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.len___pool__nw
call fcn.004ad8b3
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov edi, ebx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
lea eax, [eax + edx*4]
mov esi, ebx
sub esi, edi
cmp esi, ebx
cmovae esi, ebx
mov ebx, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x78]
push dword [esp + 0x18]
push dword [esp + 0x38]
lea eax, [esp + 0x78]
push eax
call fcn.0046a8f0
add esp, 0xc
mov eax, ebp
cmp esi, ebp
jae 0x46b749
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, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], ebx
lea ecx, [ebx + edi*4]
mov dword [esp + 4], ecx
mov ecx, esi
sub ecx, eax
cmp ecx, esi
cmovae ecx, esi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
and ecx, 0x1f
mov dword [esp], ecx
mov ecx, eax
mov dword [esp + 0x30], eax
test eax, eax
mov ecx, dword [esp + 0x98]
je 0x46b7f0
mov ebx, 0x20
sub ebx, dword [esp]
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x30]
jmp 0x46b7ba
mov ecx, ebx
shl eax, cl
or eax, ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x98]
add esi, 4
add edx, 1
add edi, 0xffffffff
je 0x46b7f0
lea eax, [edx - 1]
xor ebp, ebp
cmp dword [esp + 0x2c], eax
jbe 0x46b7cd
mov eax, dword [esp + 0xc]
mov ebp, dword [eax + edx*4 - 4]
mov dword [esi], ebp
cmp dword [esp], 0
je 0x46b7af
mov ecx, dword [esp]
shr ebp, cl
mov dword [esi], ebp
xor eax, eax
cmp dword [esp + 0x2c], edx
jbe 0x46b7a0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edx*4]
jmp 0x46b7a0
mov eax, dword [esp + 0x28]
mov edx, eax
mov esi, dword [esp + 8]
cmp esi, eax
jae 0x46b81e
push 0x2bb
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.len___pool__nw
call fcn.004ad8b3
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov edx, esi
mov eax, esi
sub eax, edx
cmp eax, esi
cmovae eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 4]
lea eax, [esi + eax*4]
mov dword [esp + 0x60], edx
mov dword [esp + 8], eax
mov dword [esp + 0x64], eax
mov eax, edx
mov dword [esp + 0x24], edx
test edx, edx
mov ebx, dword [esp + 0x18]
je 0x46b8d0
mov eax, 0x20
sub eax, dword [esp]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x24]
jmp 0x46b890
mov ecx, dword [esp + 4]
shl eax, cl
mov ecx, dword [esp + 0x98]
or eax, ebp
mov dword [esi], eax
mov ebx, dword [esp + 0x18]
add esi, 4
add edx, 1
add edi, 0xffffffff
je 0x46b8d0
xor ebp, ebp
cmp dword [ecx], edx
jbe 0x46b89c
mov eax, dword [ecx + 4]
mov ebp, dword [eax + edx*4]
mov dword [esi], ebp
cmp dword [esp], 0
je 0x46b885
mov ecx, dword [esp]
shr ebp, cl
mov dword [esi], ebp
lea ecx, [edx + 1]
xor eax, eax
mov ebx, dword [esp + 0x98]
cmp dword [ebx], ecx
mov ecx, dword [esp + 0x98]
jbe 0x46b870
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx*4 + 4]
jmp 0x46b870
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
cmp esi, edx
jae 0x46b915
mov eax, 0xffffffff
mov ecx, dword [esp]
shl eax, cl
not eax
mov ecx, dword [esp + 8]
and dword [ecx + esi*4], eax
lea eax, [esi + 1]
cmp eax, edx
jae 0x46b915
mov eax, dword [esp + 8]
lea eax, [eax + esi*4]
add eax, 4
mov ecx, esi
not ecx
add ecx, edx
shl ecx, 2
push ecx
push 0
push eax
call fcn.004a0e50
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
mov ebp, eax
cmovb ebp, ecx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x58]
lea edx, [esp + 0x70]
push ebx
mov edi, dword [esp + 0x38]
push edi
lea eax, [esp + 0x68]
push eax
call fcn.0046a8f0
add esp, 0xc
test ebp, ebp
je 0x46ba6d
mov ecx, ebp
mov eax, dword [esp + 0x2c]
lea eax, [esi + eax*4]
xor ebp, ebp
xor edx, edx
mov dword [esp + 4], ecx
jmp 0x46b97b
add edx, 1
mov ecx, dword [esp + 4]
cmp ecx, edx
je 0x46b9b0
mov esi, 0
cmp dword [esp + 0x30], edx
jbe 0x46b989
mov esi, dword [eax + edx*4]
xor ecx, ecx
mov ebx, dword [esp + 0xc]
add ebp, dword [ebx + edx*4]
setb cl
mov edi, ebp
add edi, esi
mov ebp, ecx
adc ebp, 0
cmp dword [esp + 0x18], 0
je 0x46b970
mov dword [ebx + edx*4], edi
jmp 0x46b970
cmp ecx, 1
jne 0x46b9e0
xor eax, eax
mov ecx, 1
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
test byte [esp + 4], 1
jne 0x46ba5f
jmp 0x46ba6d
mov ebp, ecx
and ebp, 0x7fffffe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea esi, [eax + ecx*4]
add esi, 4
xor eax, eax
mov ecx, 1
mov ebx, dword [esp + 0x18]
jmp 0x46ba1b
mov cl, dl
add eax, 2
mov edx, ebp
cmp ebp, eax
je 0x46ba50
mov edi, dword [esi + eax*4 - 4]
not edi
xor edx, edx
add edi, ecx
setb cl
test ebx, ebx
je 0x46ba30
mov dword [esi + eax*4 - 4], edi
mov dl, cl
mov edi, dword [esi + eax*4]
not edi
xor ecx, ecx
add edi, edx
setb dl
test ebx, ebx
je 0x46ba10
mov dword [esi + eax*4], edi
jmp 0x46ba10
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
test byte [esp + 4], 1
je 0x46ba6d
test ebx, ebx
je 0x46ba6d
mov edx, dword [esi + eax*4]
not edx
add ecx, edx
mov dword [esi + eax*4], ecx
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
cmp esi, ebp
jae 0x46ba92
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 ebp, esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 8]
lea esi, [ecx + eax*4]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x50]
lea edx, [esp + 0x70]
push ebx
push edi
lea eax, [esp + 0x60]
push eax
call fcn.0046a8f0
add esp, 0xc
mov edx, dword [esp + 0x14]
cmp edx, ebp
mov ebx, ebp
jae 0x46baf7
mov eax, 0xffffffff
mov ecx, dword [esp]
shl eax, cl
not eax
and dword [esi + edx*4], eax
lea eax, [edx + 1]
cmp eax, ebx
jae 0x46baf7
lea eax, [esi + edx*4]
add eax, 4
mov ecx, edx
not ecx
add ecx, ebx
shl ecx, 2
push ecx
push 0
push eax
call fcn.004a0e50
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x46bbc0
mov eax, 0x20
sub eax, dword [esp]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add ecx, esi
mov edx, dword [esp + 0x10]
add ecx, edx
mov ebp, dword [esp + 0x30]
lea eax, [ecx + ebp*2]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
add eax, 0xfffffffc
mov dword [esp + 4], eax
lea eax, [ebp - 2]
mov dword [esp + 0x24], eax
mov edi, ebp
neg edi
mov eax, 1
sub eax, ebp
mov dword [esp + 0x28], eax
lea eax, [ebp - 1]
mov dword [esp + 0xc], eax
lea eax, [esi + ebp]
add eax, edx
lea eax, [ecx + eax*4]
add eax, 0xfffffffc
xor esi, esi
jmp 0x46bb72
mov ecx, dword [esp + 8]
shr ebp, cl
or ebp, edx
mov dword [eax + esi*4], ebp
add esi, 0xffffffff
cmp edi, esi
je 0x46bbc0
mov ecx, dword [esp + 0xc]
add ecx, esi
mov edx, 0
cmp ebx, ecx
jbe 0x46bb88
mov ecx, dword [esp + 4]
mov edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
cmp dword [esp], 0
je 0x46bb6b
mov ecx, dword [esp]
shl edx, cl
mov dword [eax + esi*4], edx
cmp dword [esp + 0x28], esi
je 0x46bbc0
mov ecx, dword [esp + 0x24]
add ecx, esi
xor ebp, ebp
cmp ebx, ecx
jbe 0x46bb60
mov ecx, dword [esp + 4]
mov ebp, dword [ecx + esi*4 - 4]
jmp 0x46bb60
mov eax, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
sub esi, edx
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
cmp eax, edx
cmovb edx, eax
sub eax, edx
cmp eax, esi
cmovae eax, esi
test eax, eax
je 0x46b5b0
mov ecx, edx
shl edx, 2
mov ecx, dword [esp + 0x38]
add edx, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + edx*4]
xor esi, esi
xor edx, edx
jmp 0x46bc43
xor ebx, ebx
mov ebp, dword [esp + 0x14]
add esi, dword [ebp + edx*4]
setb bl
add esi, edi
adc ebx, 0
mov dword [ebp + edx*4], esi
add edx, 1
mov esi, ebx
cmp eax, edx
je 0x46b5b0
mov edi, 0
cmp dword [esp + 0x30], edx
jbe 0x46bc20
mov edi, dword [ecx + edx*4]
jmp 0x46bc20
mov eax, ecx
shr eax, 5
cmp eax, dword [edi]
jae 0x46bc83
mov edx, 0xffffffff
shl edx, cl
not edx
mov ecx, dword [edi + 4]
and dword [ecx + eax*4], edx
nop
nop
nop
nop
nop
add eax, 1
cmp eax, dword [edi]
jae 0x46bc83
mov ecx, dword [edi + 4]
mov dword [ecx + eax*4], 0
jmp 0x46bc70
mov esi, dword [esp + 0x40]
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 + 0x80]
xor ecx, esp
call fcn.0049e0f0
mov eax, edi
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret