Function at 0x4ae0b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x240]
push ebp
mov ebp, dword [esp + 0x23c]
push esi
mov esi, dword [esp + 0x244]
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [eax], edi
jne 0x4ae128
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0048b951
add esp, 0x22c
ret
push ebx
call fcn.004ae070
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
jne 0x4ae142
mov eax, 0x1b
jmp 0x4ae5f8
cmp esi, edi
jne 0x4ae14b
mov esi, str.Content_Type:_multipart_form_data
push ebx
push esi
push str._s__boundary_s_r_n
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004adc70
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x4ae177
push ebx
call dword [0x6228a0]
add esp, 4
mov eax, esi
jmp 0x4ae5f8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
nop
or edi, dword [esp + 0x18]
je 0x4ae1ab
push 0x60bf6c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ae59f
mov ebx, dword [esp + 0x24]
push ebx
push str.___s_r_n
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ae59f
push str.Content_Disposition:_form_data__name_
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004adc70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ae59f
mov eax, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
cdq
push edx
push eax
mov eax, dword [ebp + 4]
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.004adab0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4ae59f
push 0x5afe98
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ae59f
cmp dword [ebp + 0x24], eax
je 0x4ae281
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x6228a0]
mov ecx, dword [esp + 0x2c]
add esp, 4
call fcn.004ae070
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4ae572
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ae59f
mov dword [esp + 0x20], ebp
cmp dword [ebp + 0x24], 0
je 0x4ae2d5
mov ecx, dword [esp + 0x1c]
push ecx
push str._r_n___s_r_nContent_Disposition:_attachment
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ae59f
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.004addf0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4ae59f
jmp 0x4ae308
mov eax, dword [ebp + 0x28]
test al, 0x51
je 0x4ae304
cmp dword [ebp + 0x2c], 0
jne 0x4ae2e6
test al, 1
je 0x4ae2fc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov eax, ebp
call fcn.004addf0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4ae59f
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4ae331
push eax
push str._r_nContent_Type:__s
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ae59f
mov esi, dword [edi + 0x20]
test esi, esi
je 0x4ae365
mov ecx, dword [esi]
push ecx
push str._r_n_s
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ae59f
mov esi, dword [esi + 4]
test esi, esi
jne 0x4ae338
jmp 0x4ae36d
test ebx, ebx
jne 0x4ae59f
push str._r_n_r_n
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004adc70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ae59f
mov eax, dword [ebp + 0x28]
test al, 3
jne 0x4ae428
test al, 0x10
je 0x4ae3c2
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
cdq
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push 2
push edx
call fcn.004adab0
add esp, 0x18
mov ebx, eax
jmp 0x4ae51a
test al, 0x40
je 0x4ae3f7
test al, al
jns 0x4ae3d2
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
jmp 0x4ae3d6
mov eax, dword [ebp + 0x10]
cdq
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebp + 0x30]
push eax
push edx
lea eax, [esp + 0x20]
push 3
push eax
call fcn.004adab0
add esp, 0x18
mov ebx, eax
jmp 0x4ae51a
test al, al
jns 0x4ae403
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
jmp 0x4ae407
mov eax, dword [ebp + 0x10]
cdq
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push eax
push edx
lea eax, [esp + 0x20]
push 2
push eax
call fcn.004adab0
add esp, 0x18
mov ebx, eax
jmp 0x4ae51a
mov eax, dword [edi + 0xc]
mov edi, eax
mov esi, 0x5b7838
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ae444
call fcn.0048e380
jmp 0x4ae452
push 0x5b0218
push eax
call fcn.0048fab6
add esp, 8
mov esi, eax
test esi, esi
je 0x4ae4ed
call fcn.0048e380
cmp esi, eax
push esi
je 0x4ae492
call fcn.0048d609
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0xc]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
call fcn.004adab0
add esp, 0x1c
mov ebx, eax
jmp 0x4ae51a
push 0x200
lea ecx, [esp + 0x40]
push 1
push ecx
call fcn.0048fd17
add esp, 0x10
test eax, eax
je 0x4ae51a
lea ebx, [ebx]
lea edx, [esp + 0x14]
push edx
push 0
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.004adab0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4ae51a
push esi
push 0x200
lea edx, [esp + 0x40]
push 1
push edx
call fcn.0048fd17
add esp, 0x10
test eax, eax
jne 0x4ae4b0
jmp 0x4ae51a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4ae50b
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
push edx
push str.couldnt_open_file___s_
push eax
call fcn.004bb600
add esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov ebx, 0x1a
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4ae533
test ebx, ebx
je 0x4ae285
jmp 0x4ae59f
test ebx, ebx
jne 0x4ae59f
cmp dword [ebp + 0x24], ebx
je 0x4ae55e
mov edx, dword [esp + 0x1c]
push edx
push str._r_n___s__
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ae59f
mov ebp, dword [ebp]
test ebp, ebp
je 0x4ae579
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
jmp 0x4ae180
mov ebx, 0x1b
jmp 0x4ae59f
test ebx, ebx
jne 0x4ae59f
mov esi, dword [esp + 0x24]
push esi
push str._r_n___s___r_n
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004adc70
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4ae5c6
lea ecx, [esp + 0x2c]
push ecx
call fcn.004adcc0
mov edx, dword [esp + 0x20]
push edx
call dword [0x6228a0]
mov eax, dword [esp + 0x2c]
push eax
call dword [0x6228a0]
add esp, 0xc
mov eax, ebx
jmp 0x4ae5f8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [0x6228a0]
push esi
call dword [0x6228a0]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 8
mov dword [edx], ecx
xor eax, eax
mov ecx, dword [esp + 0x238]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0048b951
add esp, 0x22c
ret