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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov edx, dword [eax]
test edx, edx
je 0x42e990
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 4]
test byte [eax], 1
je 0x42e9bf
mov eax, dword [esp + 0xa4]
lea esi, [eax + 0x1f]
mov eax, 1
shr esi, 5
test esi, esi
cmove esi, eax
lea eax, [esi + esi]
mov edx, esi
cmp eax, esi
cmovbe edx, eax
add eax, esi
lea ebx, [edx + edx*2]
add ebx, ebx
lea edi, [ebx + eax*2]
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x42e9e0
mov dword [esp], esi
call fcn.0042c780
mov dword [esp], edi
mov ebp, eax
call fcn.0042c780
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov dword [esp + 0x34], edx
mov edx, ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
call fcn.0042c200
cmp dword [esp + 0xa4], 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], edx
mov dword [eax], 1
jbe 0x42e93c
mov dword [esp + 0x20], 1
lea esi, [esi]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ebx, 1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
lea esi, [edi + 0x1f]
lea edx, [edi + edi + 0x1f]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
shr edx, 5
shr esi, 5
mov dword [esp + 0x24], edx
mov edx, esi
call fcn.0042c200
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x44], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0042ca20
mov eax, edi
shr edi, 5
and eax, 0x1f
mov ecx, eax
mov dword [esp + 0x28], eax
shl ebx, cl
sub ebx, 1
cmp edi, dword [esp + 0x40]
jae 0x42e703
mov ecx, dword [esp + 0x44]
mov edx, ebx
mov eax, edi
and dword [ecx + eax*4], edx
add eax, 1
xor edx, edx
cmp eax, dword [esp + 0x40]
jb 0x42e6f5
cmp dword [ebp], esi
mov edx, esi
mov eax, dword [ebp + 4]
cmovbe edx, dword [ebp]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x24]
call fcn.0042c200
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x50]
lea edx, [esp + 0x40]
call fcn.0042c260
lea eax, [esp + 0x38]
mov edx, esi
call fcn.0042c200
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0042dc80
lea ecx, [esp + 0x38]
mov edx, esi
mov eax, ecx
call fcn.0042c200
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.0042dc80
cmp edi, dword [esp + 0x60]
jae 0x42e7cf
mov ecx, dword [esp + 0x64]
mov edx, ebx
mov eax, edi
and dword [ecx + eax*4], edx
add eax, 1
xor edx, edx
cmp eax, dword [esp + 0x60]
jb 0x42e7c1
cmp dword [esp + 0x50], esi
mov eax, esi
mov edx, dword [esp + 0x1c]
cmovbe eax, dword [esp + 0x50]
lea ecx, [esp + 0x60]
mov dword [esp + 4], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [esp + 0x68]
call fcn.0042c260
lea ecx, [esp + 0x58]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 4], 0xffffffff
call fcn.0042bd60
lea ecx, [esp + 0x68]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xffffffff
mov dword [esp], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x78], 0
call fcn.0042bd60
mov edx, esi
lea esi, [esp + 0x38]
mov eax, esi
call fcn.0042c200
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
lea ecx, [esp + 0x68]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x70]
lea edx, [esp + 0x48]
call fcn.0042c260
cmp edi, dword [esp + 0x70]
jae 0x42e8be
mov edx, dword [esp + 0x74]
mov eax, edi
nop
and dword [edx + eax*4], ebx
add eax, 1
xor ebx, ebx
cmp eax, dword [esp + 0x70]
jb 0x42e8b0
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x58]
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.0042dba0
mov edx, dword [ebp]
mov ecx, dword [esp + 0x24]
mov eax, edi
cmp edx, edi
cmovbe eax, edx
sub ecx, edi
sub edx, eax
cmp ecx, edx
cmovbe edx, ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
mov dword [esp + 0x78], edx
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x78]
mov dword [esp + 0x7c], eax
call fcn.0042bd60
shl dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xa4], eax
ja 0x42e680
movzx ecx, byte [esp + 0xa4]
mov eax, dword [esp + 0xa4]
mov edx, 1
shr eax, 5
shl edx, cl
sub edx, 1
cmp dword [ebp], eax
jbe 0x42e96d
mov ecx, dword [ebp + 4]
and dword [ecx + eax*4], edx
add eax, 1
xor edx, edx
cmp eax, dword [ebp]
jb 0x42e960
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0042c940
add esp, 0x8c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x50a
mov dword [esp + 4], str._MoTTY_crypto_mpint.c
mov dword [esp], str.x__nw___0
call fcn.00455fa0
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 4]
test byte [eax], 1
jne 0x42e5ee
mov dword [esp + 8], 0x50b
mov dword [esp + 4], str._MoTTY_crypto_mpint.c
mov dword [esp], str.x__w_0___1
call fcn.00455fa0
jmp 0x42e5ee
mov dword [esp + 8], 0x50c
mov dword [esp + 4], str._MoTTY_crypto_mpint.c
mov dword [esp], str.p___0
call fcn.00455fa0
mov dword [esp], esi
call fcn.0042c780
mov dword [esp], edi
mov ebp, eax
call fcn.0042c780
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov dword [esp + 0x34], edx
mov edx, ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
call fcn.0042c200
mov eax, dword [ebp + 4]
mov dword [eax], 1
jmp 0x42e93c