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

Disassembly:
sub esp, 0x78
push esi
push 0x4a60ec
push 0x4a8b0c
call fcn.00401320
mov esi, eax
add esp, 8
test esi, esi
je 0x4039a8
cmp dword [esi], 0
je 0x4039a8
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0044ba7a
mov edi, dword [esi]
push edi
mov dword [esp + 0x14], edi
call fcn.0040123f
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], esi
je 0x40370d
mov ecx, dword [edi]
push ecx
call fcn.00401212
add esp, 4
test eax, eax
je 0x40370d
mov eax, dword [edi]
sub esi, 1
push eax
mov dword [esp + 0xc], esi
call fcn.00401c99
add edi, 4
add esp, 4
cmp eax, 1
mov dword [esp + 0xc], edi
jge 0x403697
mov eax, 1
cdq
add eax, dword [0x4898e0]
adc edx, dword [0x4898e4]
cmp edx, dword [esp + 0x1c]
jg 0x4039a7
jl 0x4036ba
cmp eax, dword [esp + 0x18]
ja 0x4039a7
mov eax, dword [edi]
test eax, eax
je 0x403994
push ebx
push ebp
push eax
call fcn.00401915
mov ebx, eax
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.00401906
add esp, 0xc
test eax, eax
jl 0x40397d
mov esi, dword [esp + 0x4c]
cmp esi, dword [0x49a36c]
mov ebp, dword [esp + 0x48]
jl 0x403714
jg 0x403706
cmp ebp, dword [0x49a368]
jbe 0x403714
mov edi, 1
jmp 0x403716
mov eax, 0x258
jmp 0x403697
xor edi, edi
mov eax, dword [esp + 0x2e]
and eax, 0xf000
cmp eax, 0x4000
jne 0x4038a3
push ebx
push str._s_new
xor ebp, ebp
call fcn.004018a7
lea ecx, [esp + 0x60]
mov ebx, eax
push ecx
push ebx
call fcn.00401906
add esp, 0x10
cmp eax, 0xffffffff
je 0x403796
mov edx, dword [esp + 0x5e]
and edx, 0xf000
cmp edx, 0x4000
jne 0x403796
mov eax, dword [esp + 0x7c]
cmp eax, dword [0x49a36c]
mov ecx, 0xc
lea esi, [esp + 0x58]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
jl 0x403790
jg 0x403787
mov ecx, dword [esp + 0x78]
cmp ecx, dword [0x49a368]
jbe 0x403790
mov edi, 1
mov edx, ebx
jmp 0x40379a
xor edi, edi
mov edx, ebx
jmp 0x40379a
mov edx, dword [esp + 0x18]
mov ecx, dword [0x4898e0]
mov eax, dword [0x4898e4]
mov esi, dword [esp + 0x4c]
add ecx, 1
adc eax, 0
cmp esi, eax
jl 0x403898
jg 0x4037c5
mov eax, dword [esp + 0x48]
cmp eax, ecx
jbe 0x403898
cmp dword [0x4a6080], ebp
je 0x4037d5
test edi, edi
je 0x403898
push edx
call fcn.00401208
push ebx
mov esi, eax
call fcn.00401334
add esp, 8
test esi, esi
je 0x40397d
push esi
call fcn.00401668
add esp, 4
test eax, eax
je 0x40388d
push esi
call fcn.00401668
add esp, 4
test eax, eax
je 0x40388d
push esi
call fcn.00401668
add esp, 4
test eax, eax
je 0x403830
lea ecx, [ecx]
push esi
add ebp, 1
call fcn.00401668
add esp, 4
test eax, eax
jne 0x403820
push esi
call fcn.0040191f
add esp, 4
test ebp, ebp
je 0x40397d
cmp dword [esp + 0x10], 1
jne 0x403868
push ebp
push str.You_have__d_mail_messages._n
push 3
push 0xb
call fcn.00401069
add esp, 0xc
push eax
call fcn.004019b5
add esp, 8
jmp 0x40397d
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push str.You_have__d_mail_messages_in__s._n
push 4
push 0xb
call fcn.00401069
add esp, 0xc
push eax
call fcn.004019b5
add esp, 0xc
jmp 0x40397d
push esi
call fcn.0040191f
jmp 0x40397a
push ebx
call fcn.00401334
jmp 0x40397a
cmp dword [esp + 0x3c], 0
je 0x40397d
mov eax, dword [esp + 0x44]
cmp eax, esi
jg 0x40397d
mov edx, dword [esp + 0x40]
jl 0x4038c8
cmp edx, ebp
jae 0x40397d
mov ecx, dword [0x4898e4]
cmp eax, ecx
jg 0x4038ef
mov eax, dword [0x4898e0]
jl 0x4038dd
cmp edx, eax
ja 0x4038ef
cmp esi, ecx
jl 0x40397d
jg 0x4038ef
cmp ebp, eax
jbe 0x40397d
cmp dword [0x4a6080], 0
je 0x403902
test edi, edi
je 0x40397d
jmp 0x403906
test edi, edi
je 0x403919
push str.new
push 6
push 0xb
call fcn.00401069
add esp, 0xc
jmp 0x40391e
mov eax, 0x47cce9
push eax
call fcn.00401073
mov esi, eax
push fcn.00401334
push esi
call fcn.004013c5
add esp, 0xc
cmp dword [esp + 0x10], 1
jne 0x403958
push esi
push str.You_have__smail._n
push 5
push 0xb
call fcn.00401069
add esp, 0xc
push eax
call fcn.004019b5
add esp, 8
jmp 0x403974
push ebx
push esi
push str.You_have__smail_in__s._n
push 7
push 0xb
call fcn.00401069
add esp, 0xc
push eax
call fcn.004019b5
add esp, 0xc
push esi
call fcn.00401ea6
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
test eax, eax
jne 0x4036c6
pop ebp
pop ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [0x4898e0], edx
mov dword [0x4898e4], eax
pop edi
pop esi
add esp, 0x78
ret