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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591528b0
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x59049148
mov dword [eax], esi
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
cmp ebp, esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
je 0x59049aba
cmp ebx, esi
je 0x59049aba
mov eax, dword [0x59162880]
mov dword [esp + 0x10], eax
mov edi, str.cookie
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x68], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x38], esi
push ecx
push str.cookie
push ebx
push ebp
call fcn.5900d6d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x59049386
mov ecx, dword [0x5916287c]
mov dword [esp + 0x14], ecx
add eax, ebp
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x6c], 1
call fcn.590a0590
lea edx, [esp + 0x38]
lea eax, [esp + 0x34]
push edx
push 0x59186bac
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.590a53b0
mov bl, 3
mov byte [esp + 0x68], bl
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 8]
test eax, eax
je 0x590492e7
mov edi, str._mpop
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x5918d930
call fcn.590952c0
add esp, 0xc
test eax, eax
jne 0x590492aa
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
push ecx
push 0x59189ed8
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], eax
call fcn.590a53b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 4
call fcn.590a1040
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x590492aa
push 0x59189430
lea ecx, [esp + 0x18]
call fcn.590a2040
cmp eax, 0xffffffff
jne 0x590492aa
lea ecx, [esp + 0x48]
lea edx, [esp + 0x50]
push ecx
push 0x59189ed8
push edx
lea ecx, [esp + 0x40]
call fcn.590a53b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 5
call fcn.590a1040
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59049258
lea ecx, [esp + 0x38]
lea edx, [esp + 0x54]
push ecx
push 0x59186bac
push edx
lea ecx, [esp + 0x4c]
call fcn.590a53b0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 6
call fcn.590a1040
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
cmp esi, 7
jl 0x590491df
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59049358
push 0x59189430
lea ecx, [esp + 0x18]
call fcn.590a2040
cmp eax, 0xffffffff
je 0x59049358
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call fcn.590a0490
lea eax, [esp + 0x58]
mov byte [esp + 0x6c], bl
push eax
call fcn.5900b190
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 8
call fcn.590a1040
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59049358
push eax
lea ecx, [esp + 0x14]
call fcn.590a65a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 2
call fcn.590a0ec0
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.590a0ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0
call fcn.590a0ec0
mov ebx, dword [esp + 0x74]
mov edi, str.func_name
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.func_name
push ebx
push ebp
call fcn.5900d6d0
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x590493be
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
push 0
push 0
push 0
push edx
jmp 0x5904942c
mov edi, str.func_name
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
add edx, ebx
add edx, ebp
mov al, byte [edx]
cmp al, 0x26
je 0x59049403
cmp al, 0xd
je 0x59049403
mov edi, str.func_name
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x74]
not ecx
dec ecx
sub eax, ebx
sub eax, ecx
cmp esi, eax
jge 0x59049403
mov al, byte [esi + edx + 1]
inc esi
cmp al, 0x26
jne 0x590493db
mov edi, str.func_name
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x74]
not ecx
mov eax, edi
dec ecx
sub eax, ebx
sub eax, ecx
cmp esi, eax
jl 0x59049442
mov ecx, dword [esp + 0x78]
push ecx
push 0
push 0
push 0
push edi
push ebp
call fcn.59016b20
add esp, 0x18
mov dword [esp + 0x68], 0xffffffff
jmp 0x59049ab1
test esi, esi
jle 0x59049466
push esi
push str.send
push edx
call fcn.590952c0
add esp, 0xc
test eax, eax
je 0x59049475
mov dword [esp + 0x68], 0xffffffff
jmp 0x59049ab1
jne 0x59049475
mov dword [esp + 0x68], 0xffffffff
jmp 0x59049ab1
push 0x591892bc
push edi
push ebp
call fcn.5900f930
mov edx, eax
or esi, 0xffffffff
add esp, 0xc
cmp edx, esi
je 0x59049aad
mov edi, 0x591892bc
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x74]
not ecx
dec ecx
add edx, ecx
lea ecx, [esp + 0x30]
sub eax, edx
add ebp, edx
push eax
push ebp
call fcn.590a0970
lea edx, [esp + 0x38]
lea eax, [esp + 0x70]
push edx
push 0x59188924
mov byte [esp + 0x70], 0xa
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], 0
call fcn.59082010
mov edx, dword [esp + 0x70]
mov byte [esp + 0x68], 0xb
mov eax, dword [edx - 8]
test eax, eax
jne 0x590494fc
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0xa
call fcn.590a0ec0
jmp 0x59049a9f
mov eax, dword [0x59162880]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x68], 0xd
mov dword [esp + 0x28], eax
mov byte [esp + 0x68], 0xe
mov dword [esp + 0x24], eax
mov byte [esp + 0x68], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x68], 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x68], 0x11
mov dword [esp + 0x18], eax
mov byte [esp + 0x68], 0x12
mov dword [esp + 0x44], eax
mov eax, dword [edx - 8]
mov bl, 0x13
test eax, eax
mov byte [esp + 0x68], bl
je 0x5904983a
mov edi, 0x5918866c
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x5918866c
call fcn.590952c0
add esp, 0xc
test eax, eax
jne 0x59049604
mov edi, 0x5918866c
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xfde9
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.590a30b0
lea eax, [esp + 0x5c]
mov byte [esp + 0x70], bl
push eax
call fcn.5900b190
add esp, 8
mov ecx, eax
mov byte [esp + 0x6c], 0x15
call fcn.5901acd0
push eax
lea ecx, [esp + 0x34]
call fcn.590aa6a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59049604
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.5900b2f0
add esp, 8
lea edx, [esp + 0x74]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0x6c], 0x16
call fcn.590a63d0
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], bl
call fcn.590a6240
mov edi, 0x591888a8
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x70]
not ecx
dec ecx
push ecx
push eax
push 0x591888a8
call fcn.590952c0
add esp, 0xc
test eax, eax
jne 0x59049683
mov edi, 0x591888a8
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xfde9
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.590a30b0
lea eax, [esp + 0x58]
mov byte [esp + 0x70], bl
push eax
call fcn.5900b190
add esp, 8
mov ecx, eax
mov byte [esp + 0x6c], 0x18
call fcn.5901acd0
push eax
lea ecx, [esp + 0x2c]
call fcn.590aa6a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov edi, 0x591888a4
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x74]
push ecx
push 0x591888a4
call fcn.590952c0
add esp, 0xc
test eax, eax
jne 0x590496ff
push 0xfde9
push 0x5918d778
call fcn.5908850e
mov edx, esp
mov dword [esp + 0x1c], esp
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.590a30b0
lea eax, [esp + 0x54]
mov byte [esp + 0x70], bl
push eax
call fcn.5900b190
add esp, 8
mov ecx, eax
mov byte [esp + 0x6c], 0x1a
call fcn.5901acd0
push eax
lea ecx, [esp + 0x28]
call fcn.590aa6a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov edi, 0x5918889c
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x74]
push ecx
push 0x5918889c
call fcn.590952c0
add esp, 0xc
test eax, eax
jne 0x5904977b
push 0xfde9
push str.bcc
call fcn.5908850e
mov edx, esp
mov dword [esp + 0x1c], esp
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.590a30b0
lea eax, [esp + 0x50]
mov byte [esp + 0x70], bl
push eax
call fcn.5900b190
add esp, 8
mov ecx, eax
mov byte [esp + 0x6c], 0x1c
call fcn.5901acd0
push eax
lea ecx, [esp + 0x24]
call fcn.590aa6a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov edi, 0x59188890
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x74]
push ecx
push 0x59188890
call fcn.590952c0
add esp, 0xc
test eax, eax
jne 0x590497f7
push 0xfde9
push str.subject
call fcn.5908850e
mov edx, esp
mov dword [esp + 0x1c], esp
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.590a30b0
lea eax, [esp + 0x48]
mov byte [esp + 0x70], bl
push eax
call fcn.5900b190
add esp, 8
mov ecx, eax
mov byte [esp + 0x6c], 0x1e
call fcn.5901acd0
push eax
lea ecx, [esp + 0x20]
call fcn.590aa6a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push 0x59188924
push edx
lea ecx, [esp + 0x3c]
call fcn.59082010
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 0x1f
call fcn.590a1040
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
mov edx, dword [esp + 0x70]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904954c
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x590498f6
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x590498f6
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
jne 0x590498f6
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x590498f6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x590498f6
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0x12
call fcn.590a6240
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0x11
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0x10
call fcn.590a6240
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0xf
call fcn.590a6240
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xe
call fcn.590a6240
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0xd
call fcn.590a6240
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 0xb
call fcn.590a6240
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0xa
call fcn.590a0ec0
jmp 0x59049a9f
mov eax, dword [esp + 0x78]
test eax, eax
je 0x59049979
mov dword [eax], 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0x12
call fcn.590a6240
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0x11
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0x10
call fcn.590a6240
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0xf
call fcn.590a6240
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xe
call fcn.590a6240
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0xd
call fcn.590a6240
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 0xb
call fcn.590a6240
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0xa
call fcn.590a0ec0
jmp 0x59049a9f
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.59059db0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push 1
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
mov byte [esp + 0x9c], 0x22
call fcn.5900c690
add esp, 0x34
test eax, eax
je 0x59049a22
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push ebp
push edi
push edx
call fcn.5900c480
add esp, 0xc
test eax, eax
je 0x59049a22
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push 2
push 1
push ecx
push ebp
push edi
call fcn.5900e750
add esp, 0x44
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], bl
call fcn.590a0ec0
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0x12
call fcn.590a6240
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0x11
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0x10
call fcn.590a6240
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0xf
call fcn.590a6240
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xe
call fcn.590a6240
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0xd
call fcn.590a6240
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 0xb
call fcn.590a6240
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0xa
call fcn.590a0ec0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call fcn.590a0ec0
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x10]
call fcn.590a6240
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret