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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x611f47
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
and dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push str.boundary
lea ecx, [esp + 0x98]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
call fcn.0040518c
and dword [esp + 0x260], 0
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x30]
lea edi, [esp + 0xb4]
call fcn.004a4b85
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x268], 2
call fcn.004055c2
cmp dword [esp + 0xc4], edi
jne 0x5403a7
push edi
push 1
lea ecx, [esp + 0xb8]
call fcn.004055c2
xor al, al
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0xd0]
push 0x665ef4
push eax
call fcn.004049b4
add esp, 0xc
push dword [esi]
push ebx
call fcn.0040b885
push 0
push 1
lea ecx, [esp + 0xd4]
mov esi, eax
call fcn.004055c2
cmp esi, 0xffffffff
jne 0x5403e7
push 0
jmp 0x540373
mov eax, dword [esp + 0xc4]
mov ecx, dword [ebx + 0x14]
add eax, esi
lea edx, [eax + 4]
cmp edx, ecx
jb 0x540409
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov bl, 1
jmp 0x540aa2
mov ebx, edx
add eax, 3
push eax
mov ecx, ebx
call fcn.0040b85d
cmp byte [eax], 0x2d
je 0x5403fa
mov eax, dword [esp + 0xc4]
lea eax, [eax + esi + 4]
push eax
mov ecx, ebx
call fcn.0040b85d
cmp byte [eax], 0x2d
je 0x5403fa
push esi
mov esi, 0x640fbc
push esi
push ebx
call fcn.00406ca8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x540aa0
inc ebx
inc ebx
push ebx
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.00406ca8
cmp eax, ebx
jne 0x540461
dec ebx
dec ebx
mov edi, ebx
jmp 0x54046f
push ebx
push 0x641dc0
push esi
call fcn.00406ca8
mov edi, eax
cmp edi, 0xffffffff
jne 0x540477
mov edi, dword [esi + 0x14]
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x74]
push 0x665ef4
push eax
call fcn.004049b4
add esp, 0xc
push edi
push esi
call fcn.0040b885
push 0
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], eax
call fcn.004055c2
cmp dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x17], 0
jne 0x5404c1
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x17], 1
mov eax, edi
sub eax, ebx
push eax
push ebx
push esi
lea esi, [esp + 0xf4]
call fcn.00406cc7
lea eax, [edi + 4]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x260], 3
mov dword [edi], eax
lea eax, [esp + 0x104]
push eax
call fcn.004a4713
xor ebx, ebx
inc ebx
push ebx
sub esp, 0x1c
mov byte [esp + 0x280], 4
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Content_Type:
call fcn.0040518c
mov edx, esi
lea ecx, [esp + 0xec]
call fcn.00549a00
add esp, 0x20
mov byte [esp + 0x260], 5
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
jae 0x540542
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x108]
call fcn.004a47f2
cmp dword [esp + 0xc8], 0x10
mov eax, dword [esp + 0xb4]
jae 0x540567
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x180]
call fcn.0040556d
cmp dword [esp + 0x100], 0x10
mov eax, dword [esp + 0xec]
jae 0x54058c
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x19c]
call fcn.0040556d
mov eax, dword [esp + 0x18]
cmp dword [edi], eax
jle 0x5405a3
mov dword [edi], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x108]
call fcn.004ba367
mov esi, str.multipart
mov byte [esp + 0x260], 6
or dword [esp + 0x10], ebx
push esi
mov ecx, eax
call fcn.00404ae8
test eax, eax
je 0x540640
cmp byte [ebp + 0x18], 0
je 0x540639
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x108]
call fcn.004ba367
mov dword [esp + 0x260], 7
or dword [esp + 0x10], 2
push str.text
mov ecx, eax
call fcn.00404ae8
test eax, eax
je 0x540639
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x108]
call fcn.004ba367
mov dword [esp + 0x260], 8
or dword [esp + 0x10], 4
push str.message
mov ecx, eax
call fcn.00404ae8
test eax, eax
jne 0x540640
mov byte [esp + 0x16], 1
jmp 0x540645
mov byte [esp + 0x16], 0
test byte [esp + 0x10], 4
je 0x54065d
and dword [esp + 0x10], 0xfffffffb
push 0
push ebx
lea ecx, [esp + 0x78]
call fcn.004055c2
test byte [esp + 0x10], 2
je 0x540675
and dword [esp + 0x10], 0xfffffffd
push 0
push ebx
lea ecx, [esp + 0x5c]
call fcn.004055c2
push 5
pop ebx
mov dword [esp + 0x260], ebx
test byte [esp + 0x10], 1
je 0x540698
and dword [esp + 0x10], 0xfffffffe
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.004055c2
cmp byte [esp + 0x16], 0
je 0x5406c3
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push eax
push dword [esp + 0x24]
lea esi, [esp + 0x3c]
call fcn.00406cc7
mov byte [esp + 0x260], 9
jmp 0x540781
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x30]
call fcn.004ba367
mov byte [esp + 0x260], 0xa
or dword [esp + 0x10], 8
push esi
mov ecx, eax
call fcn.00404ae8
test eax, eax
jne 0x54071d
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
call fcn.00431101
mov dword [esp + 0x260], 0xb
or dword [esp + 0x10], 0x10
push str.report
mov ecx, eax
call fcn.00404ae8
mov byte [esp + 0x16], 1
test eax, eax
je 0x540722
mov byte [esp + 0x16], 0
test byte [esp + 0x10], 0x10
je 0x54073b
and dword [esp + 0x10], 0xffffffef
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.004055c2
mov dword [esp + 0x260], ebx
test byte [esp + 0x10], 8
je 0x54075b
and dword [esp + 0x10], 0xfffffff7
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004055c2
cmp byte [esp + 0x16], 0
je 0x5407b6
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push eax
push dword [esp + 0x24]
lea esi, [esp + 0x3c]
call fcn.00406cc7
mov byte [esp + 0x260], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x54078c
mov eax, dword [eax + 4]
jmp 0x54078f
add eax, 4
push eax
lea ecx, [esp + 0x1b8]
call fcn.0040556d
push 0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x268], 5
call fcn.004055c2
jmp 0x54090e
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x108]
call fcn.004ba367
mov byte [esp + 0x260], 0xd
or dword [esp + 0x10], 0x20
push esi
mov ecx, eax
call fcn.00404ae8
test eax, eax
je 0x5407ea
cmp byte [ebp + 0x18], 0
je 0x5407ea
mov bl, 1
jmp 0x5407ec
xor bl, bl
mov dword [esp + 0x260], 5
test byte [esp + 0x10], 0x20
je 0x540810
and dword [esp + 0x10], 0xffffffdf
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.004055c2
test bl, bl
je 0x54090e
push 0
lea eax, [esp + 0x1d8]
push 0
push eax
lea ecx, [esp + 0x110]
call fcn.005425c5
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x1d8]
mov byte [esp + 0x264], 0xe
call fcn.0045c0f0
mov byte [esp + 0x260], 0xf
cmp dword [eax + 0x18], 0x10
jb 0x54085f
mov eax, dword [eax + 4]
jmp 0x540862
add eax, 4
push eax
lea ecx, [esp + 0x34]
call fcn.0054ad0d
mov byte [esp + 0x264], 0x10
mov ecx, eax
mov dword [esp], 0x6431a8
call fcn.00404ae8
mov ebx, eax
neg ebx
sbb bl, bl
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x38]
inc bl
call fcn.004055c2
push edi
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x268], 0xe
call fcn.004055c2
test bl, bl
je 0x5408fa
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push eax
push dword [esp + 0x24]
lea esi, [esp + 0x3c]
call fcn.00406cc7
mov byte [esp + 0x260], 0x11
cmp dword [eax + 0x18], 0x10
jb 0x5408de
mov eax, dword [eax + 4]
jmp 0x5408e1
add eax, 4
push eax
lea ecx, [esp + 0x1b8]
call fcn.0040556d
push edi
push 1
lea ecx, [esp + 0x38]
call fcn.004055c2
lea esi, [esp + 0x1d4]
mov byte [esp + 0x260], 5
call fcn.004a71b0
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
mov al, byte [esp + 0x17]
mov byte [esp + 0x1d0], al
test ecx, ecx
jne 0x540928
xor edi, edi
jmp 0x540937
mov eax, dword [esi + 0x14]
sub eax, ecx
cdq
mov edi, 0xd0
idiv edi
mov edi, eax
mov ebx, dword [esi + 0x10]
mov eax, ebx
sub eax, ecx
cdq
mov ecx, 0xd0
idiv ecx
cmp eax, edi
jae 0x54095f
lea eax, [esp + 0x104]
push eax
push 1
push ebx
call fcn.0054475c
mov dword [esi + 0x10], eax
jmp 0x540989
mov edi, esi
lea esi, [esp + 0x4c]
call fcn.005612ed
push dword [esp + 0x50]
lea eax, [esp + 0x108]
push dword [esp + 0x50]
push eax
lea eax, [esp + 0x98]
push eax
mov eax, edi
call fcn.005446a6
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x108]
call fcn.004ba367
push str.multipart
mov ecx, eax
mov byte [esp + 0x264], 0x12
call fcn.00404ae8
mov ebx, eax
neg ebx
sbb bl, bl
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x38]
inc bl
mov byte [esp + 0x268], 5
call fcn.004055c2
test bl, bl
je 0x540a40
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x28]
push dword [esp + 0x34]
call fcn.005402be
mov eax, dword [esp + 0x3c]
add esp, 0x14
cmp eax, dword [esi]
jle 0x540a40
mov dword [esi], eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x34]
push 0x665ef4
push eax
call fcn.004049b4
add esp, 0xc
push dword [esi]
push dword [esp + 0x20]
call fcn.0040b885
push edi
push 1
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.004055c2
cmp esi, 0xffffffff
je 0x540a40
mov dword [esp + 0x18], esi
push edi
push 1
lea ecx, [esp + 0xd4]
call fcn.004055c2
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 3
call fcn.004a477f
push edi
push 1
lea ecx, [esp + 0xf0]
mov byte [esp + 0x268], 2
call fcn.004055c2
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add eax, ecx
lea ecx, [eax + 4]
cmp ecx, dword [edx + 0x14]
jb 0x540407
jmp 0x5403fa
xor bl, bl
push 0
push 1
lea ecx, [esp + 0xb8]
call fcn.004055c2
mov al, bl
jmp 0x540383