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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ae2f0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov edi, 1
cmp dword [esi + 0x590], edi
jge 0x4311e3
mov eax, dword [0x4d5f90]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x10]
push eax
push str._s_BAD_Protocol_Error:_Lsub_received_in_wrong_state
push ecx
mov dword [esp + 0x34], 0
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a3625
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x5b0]
test eax, eax
je 0x4311fd
mov ecx, dword [esi + 0x5b4]
sub ecx, eax
sar ecx, 2
cmp ecx, 2
jae 0x431254
mov edx, dword [0x4d5f90]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x5a4]
mov dword [esp + 0x28], edi
push eax
lea eax, [esp + 0x14]
push str._s_BAD_Protocol_Error:_Too_few_arguments
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0042da70
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a3625
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x5b0]
test eax, eax
je 0x4312c8
mov edx, dword [esi + 0x5b4]
sub edx, eax
sar edx, 2
cmp edx, 2
jbe 0x4312c8
mov eax, dword [0x4d5f90]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x10]
push eax
push str._s_BAD_Protocol_Error:_Too_many_arguments
push ecx
mov dword [esp + 0x34], 2
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a3625
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x5b0]
push ebx
push ebp
lea ecx, [esp + 0x14]
mov eax, dword [eax]
push eax
call fcn.004a339a
mov eax, dword [esi + 0x5b0]
mov dword [esp + 0x30], 3
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.004a381e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4314f5
mov edx, dword [esi + 0x5b0]
mov edx, dword [edx + 4]
mov edx, dword [edx]
mov ebx, dword [edx - 8]
test ebx, ebx
je 0x4314f5
test eax, eax
jle 0x431340
mov dl, byte [eax + ecx - 1]
cmp dl, 0x2a
je 0x43132e
cmp dl, 0x25
jne 0x431340
mov bl, byte [eax + ecx - 1]
dec eax
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.004a09ce
jmp 0x431344
mov bl, byte [esp + 0x13]
push edi
mov ecx, esi
call fcn.0042d370
mov eax, dword [esp + 0x14]
push 0x4d83ac
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x43144e
cmp bl, 0x2a
je 0x431374
cmp bl, 0x25
jne 0x43144e
lea ebp, [esi + 0x78]
xor edi, edi
mov ecx, ebp
call fcn.004160c0
test eax, eax
jle 0x431501
mov bl, 4
push edi
mov ecx, ebp
call fcn.004160e0
push eax
lea ecx, [esp + 0x1c]
call fcn.004a364f
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x30], bl
push ecx
call fcn.00487270
add esp, 4
test al, al
je 0x4313ed
mov edx, dword [0x4d5f90]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push str._OK__ALERT__Folder___s__contains_illegal_8_bit_charactersCannot_display_using_IMAP4
push ecx
mov byte [esp + 0x3c], 5
call fcn.004a0e91
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x1c]
jmp 0x431426
mov eax, dword [0x4d5f90]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push str._LSUB__Noinferiors________s_
push edx
mov byte [esp + 0x3c], 6
call fcn.004a0e91
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0042da70
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x1c]
call fcn.004a3625
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.004a3625
mov ecx, ebp
inc edi
call fcn.004160c0
cmp edi, eax
jl 0x43138a
jmp 0x431501
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esi + 0x78]
call fcn.00416360
test al, al
je 0x431501
mov edx, dword [esp + 0x14]
push edx
call fcn.00487270
add esp, 4
test al, al
je 0x4314b3
mov eax, dword [0x4d5f90]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push str._OK__ALERT__Folder___s__contains_illegal_8_bit_characters._Cannot_display_using_IMAP4
push edx
mov byte [esp + 0x3c], 7
call fcn.004a0e91
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0042da70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call fcn.004a3625
mov ecx, dword [0x4d5f90]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push str._LSUB__Noinferiors________s_
push eax
mov byte [esp + 0x3c], 8
call fcn.004a0e91
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0042da70
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 3
call fcn.004a3625
jmp 0x431501
push str._LSUB__Noselect________
mov ecx, esi
call fcn.0042da70
mov edx, dword [0x4d5f90]
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0x5a4]
mov byte [esp + 0x30], 9
push eax
lea eax, [esp + 0x28]
push str._s_OK_LSUB_completed
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0042da70
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.004a3625
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004a3625
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret