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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ae962
push eax
mov dword fs:[0], esp
sub esp, 0x9e4
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 2
push edi
cmp dword [esi + 0x590], ecx
je 0x43860b
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:_Partial_received_in_wrong_state
push ecx
mov dword [esp + 0xa08], 0
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [esi + 0x5b0]
test eax, eax
je 0x438625
mov edx, dword [esi + 0x5b4]
sub edx, eax
sar edx, 2
cmp edx, 4
jae 0x438672
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_few_arguments
push ecx
mov dword [esp + 0xa08], 1
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [esi + 0x5b0]
test eax, eax
je 0x4386d5
mov edx, dword [esi + 0x5b4]
sub edx, eax
sar edx, 2
cmp edx, 4
jbe 0x4386d5
mov eax, dword [0x4d5f90]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5a4]
mov dword [esp + 0x9fc], ecx
push eax
lea ecx, [esp + 0x14]
push str._s_BAD_Protocol_Error:_Too_many_arguments
push ecx
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [esi + 0x5b0]
push 0
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.004865f0
mov edi, eax
mov eax, dword [esi + 0x5b0]
add esp, 8
mov dword [esp + 0x24], edi
mov ebp, dword [eax + 4]
test edi, edi
mov dword [esp + 0x28], ebp
jbe 0x43914e
lea ebx, [esi + 0x78]
mov ecx, ebx
call fcn.00414960
cmp edi, eax
ja 0x43914e
dec edi
mov ecx, ebx
push edi
call fcn.004148c0
mov edi, eax
test edi, edi
jne 0x438774
mov ecx, dword [0x4d5f90]
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x5a4]
lea edx, [esp + 0x10]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_ID_specified
push edx
mov dword [esp + 0xa08], 4
call fcn.004a0e91
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [esi + 0x5b0]
xor ecx, ecx
mov edx, dword [eax + 8]
mov edx, dword [edx]
mov edx, dword [edx - 8]
test edx, edx
jle 0x4387a9
mov edx, dword [eax + 8]
mov edx, dword [edx]
cmp byte [edx + ecx], 0x30
jl 0x4387df
mov edx, dword [eax + 8]
mov edx, dword [edx]
cmp byte [edx + ecx], 0x39
jg 0x4387df
mov edx, dword [eax + 8]
inc ecx
mov edx, dword [edx]
cmp ecx, dword [edx - 8]
jl 0x438788
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov edx, dword [edx]
cmp dword [edx - 8], ecx
jle 0x438879
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
cmp byte [edx + ecx], 0x30
jl 0x43882c
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
cmp byte [edx + ecx], 0x39
jg 0x43882c
mov edx, dword [eax + 0xc]
inc ecx
mov edx, dword [edx]
cmp ecx, dword [edx - 8]
jl 0x4387b9
jmp 0x438879
mov eax, dword [0x4d5f90]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x10]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_start_octect_specified
push ecx
mov dword [esp + 0xa08], 5
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [0x4d5f90]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x10]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_range_specified
push ecx
mov dword [esp + 0xa08], 6
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [eax + 8]
push 0
mov eax, dword [eax]
push eax
call fcn.004865f0
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x5b0]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
push eax
call fcn.004865f0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, 1
jae 0x4388fb
mov edx, dword [0x4d5f90]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x5a4]
mov dword [esp + 0x9fc], 7
push eax
lea eax, [esp + 0x14]
push str._s_NO_PARTIAL_Failure:_Starting_octet_must_be_greater_than_zero
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x438915
cmp byte [eax], 0x28
jne 0x438915
push 1
push 0
mov ecx, ebp
call fcn.004a09ce
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x438931
cmp byte [eax + ecx - 1], 0x29
jne 0x438931
dec eax
push 1
push eax
mov ecx, ebp
call fcn.004a09ce
mov edx, dword [ebp]
mov eax, dword [edx - 8]
test eax, eax
mov eax, dword [0x4d5f90]
jne 0x438988
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x10]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_part_specified
push ecx
mov dword [esp + 0xa08], 8
call fcn.004a0e91
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x439196
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x9fc], 9
call fcn.0043abc0
mov eax, dword [ebp]
push str.rfc822
push eax
mov byte [esp + 0xa04], 0xa
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x438a3b
lea ecx, [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0xc0]
call fcn.0043d040
mov edx, dword [0x4d5f90]
mov dword [esp + 0x10], edx
mov ecx, edi
mov byte [esp + 0x9fc], 0xb
call fcn.0044bcd0
push eax
lea eax, [esp + 0x14]
push str.Read_Mail__IMAP4_:_UIDL__s_
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00415150
push 1
mov ecx, edi
call fcn.00441870
mov ecx, dword [esi + 0x6c]
push ebx
call fcn.0040b900
push 0
mov ecx, esi
call fcn.0042d370
lea ecx, [esp + 0x10]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
jmp 0x438daf
mov eax, dword [ebp]
push str.rfc822.peek
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x438a67
lea edx, [esp + 0x14]
lea ecx, [esp + 0xb8]
push edx
push edi
call fcn.0043d040
jmp 0x438daf
mov eax, dword [ebp]
push str.rfc822.header
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x438a93
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb8]
push eax
push edi
call fcn.0043d0e0
jmp 0x438daf
mov eax, dword [ebp]
push str.rfc822.text
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x438b23
lea ecx, [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0xc0]
call fcn.0043d8b0
mov edx, dword [0x4d5f90]
mov dword [esp + 0x10], edx
mov ecx, edi
mov byte [esp + 0x9fc], 0xc
call fcn.0044bcd0
push eax
lea eax, [esp + 0x14]
push str.Read_Mail__IMAP4_:_UIDL__s_
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00415150
push 1
mov ecx, edi
call fcn.00441870
mov ecx, dword [esi + 0x6c]
push ebx
call fcn.0040b900
push 0
mov ecx, esi
call fcn.0042d370
lea ecx, [esp + 0x10]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
jmp 0x438daf
mov eax, dword [ebp]
push str.rfc822.text.peek
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x438b4f
lea edx, [esp + 0x14]
lea ecx, [esp + 0xb8]
push edx
push edi
call fcn.0043d8b0
jmp 0x438daf
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
cmp ecx, 5
jle 0x4390e2
push 5
push str.body_
push 5
push eax
call fcn.00485920
add esp, 0x10
test al, al
je 0x438cb6
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5d
jne 0x438cb6
mov ebp, ecx
mov edx, 5
lea ecx, [ebp - 1]
cmp ecx, edx
jle 0x438bb5
mov cl, byte [edx + eax]
cmp cl, 0x30
jl 0x438ba4
cmp cl, 0x39
jle 0x438bad
cmp cl, 0x2e
jne 0x438c46
inc edx
lea ecx, [ebp - 1]
cmp edx, ecx
jl 0x438b97
push 0x5d
push 0x5b
push eax
lea edx, [esp + 0x60]
push 0x64
push edx
call fcn.00486280
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x54]
push 0
push eax
push ecx
push edi
lea ecx, [esp + 0xc8]
call fcn.0043c420
mov edx, dword [0x4d5f90]
mov dword [esp + 0x1c], edx
mov ecx, edi
mov byte [esp + 0x9fc], 0xe
call fcn.0044bcd0
push eax
lea eax, [esp + 0x20]
push str.Read_Mail__IMAP4_:_UIDL__s_
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00415150
push 1
mov ecx, edi
call fcn.00441870
mov ecx, dword [esi + 0x6c]
push ebx
call fcn.0040b900
push 0
mov ecx, esi
call fcn.0042d370
mov byte [esp + 0x9fc], 0xa
lea ecx, [esp + 0x1c]
jmp 0x438da6
mov edx, dword [0x4d5f90]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x5a4]
mov byte [esp + 0x9fc], 0xd
push eax
lea eax, [esp + 0x14]
push str._s_NO_PARTIAL_Failure:_Invalid_PARTIAL_field_specified
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 byte [esp + 0x9fc], 0xa
call fcn.004a3625
lea ecx, [esp + 0xb8]
mov byte [esp + 0x9fc], 9
call fcn.0043ac40
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x439196
mov eax, dword [ebp]
cmp dword [eax - 8], 0xa
jle 0x439073
push 0xa
push str.body.peek_
push 0xa
push eax
call fcn.00485920
add esp, 0x10
test al, al
je 0x439004
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5d
jne 0x439004
mov ebp, ecx
mov edx, 0xa
lea ecx, [ebp - 1]
cmp ecx, edx
jle 0x438d1a
mov cl, byte [edx + eax]
cmp cl, 0x30
jl 0x438d09
cmp cl, 0x39
jle 0x438d12
cmp cl, 0x2e
jne 0x438e5a
inc edx
lea ecx, [ebp - 1]
cmp edx, ecx
jl 0x438cfc
push 0x5d
push 0x5b
push eax
lea edx, [esp + 0x60]
push 0x64
push edx
call fcn.00486280
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x54]
push 0
push eax
push ecx
push edi
lea ecx, [esp + 0xc8]
call fcn.0043c420
mov edx, dword [0x4d5f90]
mov dword [esp + 0x10], edx
mov ecx, edi
mov byte [esp + 0x9fc], 0x10
call fcn.0044bcd0
push eax
lea eax, [esp + 0x14]
push str.Read_Mail__IMAP4_:_UIDL__s_
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00415150
push 1
mov ecx, edi
call fcn.00441870
mov ecx, dword [esi + 0x6c]
push ebx
call fcn.0040b900
push 0
mov ecx, esi
call fcn.0042d370
mov byte [esp + 0x9fc], 0xa
lea ecx, [esp + 0x10]
call fcn.004a3625
mov ebp, dword [esp + 0x28]
push 0x400
lea ecx, [esp + 0x18]
call fcn.004a3836
mov edx, dword [esp + 0x14]
push 0x7d
mov edi, eax
push 0x7b
push edx
lea eax, [esp + 0x4c]
push 0x14
push eax
call fcn.00486280
lea ecx, [esp + 0x54]
push ecx
call fcn.0047b825
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov edx, 1
add esp, 0x18
sub edx, ecx
add eax, edx
cmp eax, ebx
jbe 0x438df8
mov eax, ebx
push 0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00486390
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [esp + 0x9fc], 0x14
test eax, eax
jne 0x438e1c
mov eax, 0x4b49e4
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x400
push edi
call fcn.00485eb0
mov eax, dword [esp + 0x44]
xor edi, edi
add esp, 0x10
cmp eax, edi
mov byte [esp + 0x9fc], 0xa
je 0x438ed3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x438eca
cmp al, 0xff
je 0x438eca
dec al
mov byte [ecx], al
jmp 0x438ed3
mov edx, dword [0x4d5f90]
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x5a4]
mov byte [esp + 0x9fc], 0xf
push eax
lea eax, [esp + 0x20]
push str._s_NO_PARTIAL_Failure:_Invalid_PARTIAL_field_specified
push eax
call fcn.004a0e91
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0042da70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
lea ecx, [esp + 0xb8]
mov byte [esp + 0x9fc], 9
call fcn.0043ac40
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x439196
push ecx
call fcn.004a2a3d
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.004a3885
mov edx, dword [0x4d5f90]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x28]
push str.__u_FETCH___s
push edx
mov byte [esp + 0xa0c], 0x15
call fcn.004a0e91
mov eax, dword [esp + 0x30]
add esp, 0x10
mov ecx, esi
push eax
call fcn.0042da70
lea ecx, [esp + 0x14]
call fcn.004a35b0
mov eax, dword [ebp]
push str.rfc822.header
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
sete cl
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
lea edx, [esp + 0xc4]
push ecx
push edx
mov ecx, esi
call fcn.0042d3f0
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.0042da70
mov eax, dword [ebp]
push str.rfc822.header
push eax
call fcn.0047f7d0
add esp, 8
test eax, eax
jne 0x438f93
push 0x4d83ac
mov ecx, esi
call fcn.0042da70
push 0x4cd190
mov ecx, esi
call fcn.0042da70
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x20]
push eax
push str._s_OK_PARTIAL_completed
push ecx
call fcn.004a0e91
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
lea ecx, [esp + 0x20]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
lea ecx, [esp + 0xb8]
mov byte [esp + 0x9fc], 9
call fcn.0043ac40
lea ecx, [esp + 0x14]
mov dword [esp + 0x9fc], 0xffffffff
call fcn.004a3625
mov al, 1
jmp 0x43919d
mov eax, dword [0x4d5f90]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x18]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_PARTIAL_field_specified
push ecx
mov byte [esp + 0xa08], 0x11
call fcn.004a0e91
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
lea ecx, [esp + 0x18]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
lea ecx, [esp + 0xb8]
mov byte [esp + 0x9fc], 9
call fcn.0043ac40
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x439196
mov eax, dword [0x4d5f90]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x18]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_PARTIAL_field_specified
push ecx
mov byte [esp + 0xa08], 0x12
call fcn.004a0e91
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
lea ecx, [esp + 0x18]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
lea ecx, [esp + 0xb8]
mov byte [esp + 0x9fc], 9
call fcn.0043ac40
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x439196
mov eax, dword [0x4d5f90]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x18]
push eax
push str._s_NO_PARTIAL_Failure:_Invalid_PARTIAL_field_specified
push ecx
mov byte [esp + 0xa08], 0x13
call fcn.004a0e91
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
lea ecx, [esp + 0x18]
mov byte [esp + 0x9fc], 0xa
call fcn.004a3625
lea ecx, [esp + 0xb8]
mov byte [esp + 0x9fc], 9
call fcn.0043ac40
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x439196
mov eax, dword [0x4d5f90]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5a4]
lea ecx, [esp + 0x18]
push eax
push str._s_NO_Partial_Failure:_Invalid_message_ID_specified
push ecx
mov dword [esp + 0xa08], 3
call fcn.004a0e91
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0042da70
mov dword [esp + 0x9fc], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004a3625
xor al, al
mov ecx, dword [esp + 0x9f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9f0
ret