Function at 0x41d670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x4d6750]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x3c], ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 8], 0
movlpd qword [esp + 0x10], xmm0
mov dword [esp + 0x1c], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x41dc51
call fcn.00428cd0
push eax
push ecx
call fcn.00428cd0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.0041f060
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x41d70e
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00488366
mov esp, ebp
pop ebp
ret
push edi
test esi, esi
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0041d3c0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x41d755
push edi
call dword [0x4d75cc]
mov eax, esi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x41d790
push 0x4b75f4
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41dbb8
mov edi, dword [esp + 0x14]
push edi
push str.___s_r_n
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbb8
push str.Content_Disposition:_form_data__name_
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41dbb8
lea eax, [esp + 0x18]
xor edx, edx
push eax
push dword [ebx + 8]
lea ecx, [esp + 0x18]
push dword [ebx + 4]
call fcn.0041d260
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41dbb8
push 0x4b3574
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41dbb8
cmp dword [ebx + 0x24], eax
je 0x41d879
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41d82e
push eax
call dword [0x4d75cc]
add esp, 4
call fcn.00428cd0
push eax
push ecx
call fcn.00428cd0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.0041f060
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x41dbb3
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbb8
mov esi, ebx
mov dword [esp + 0x28], esi
nop
cmp dword [ebx + 0x24], 0
je 0x41d8af
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbb8
mov ecx, esi
jmp 0x41d8c2
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x41d8dd
cmp dword [ebx + 0x2c], 0
jne 0x41d8c0
test al, 1
je 0x41d8d5
mov ecx, ebx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.0041d590
mov edi, eax
add esp, 4
test edi, edi
jne 0x41dbb8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41d906
push eax
push str._r_nContent_Type:__s
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbb8
mov esi, dword [esi + 0x20]
test esi, esi
je 0x41d93c
lea ecx, [ecx]
push dword [esi]
lea eax, [esp + 0x1c]
push str._r_n_s
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbb8
mov esi, dword [esi + 4]
test esi, esi
jne 0x41d910
jmp 0x41d944
test edi, edi
jne 0x41dbb8
push str._r_n_r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41dbb8
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x41d9f3
test al, 0x10
je 0x41d981
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x41d9db
test al, 0x40
je 0x41d9d0
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x4d75c4]
add esp, 4
test eax, eax
jne 0x41d9a2
lea edi, [eax + 0x1b]
jmp 0x41db5b
mov ecx, dword [esp + 0x10]
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x41d9c0
mov dword [ecx], eax
add dword [esp + 0x18], edi
adc dword [esp + 0x1c], 0
xor edi, edi
jmp 0x41db5b
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [esp + 0x1c]
call fcn.0041d260
add esp, 0xc
mov edi, eax
jmp 0x41db5b
mov esi, dword [esp + 0x28]
push dword [esi + 0xc]
push 0x4b75a8
call fcn.0049856e
add esp, 8
test eax, eax
jne 0x41da18
call fcn.0048acd1
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x41da2e
push 0x4b76a4
push dword [esi + 0xc]
call fcn.00488d83
add esp, 8
mov dword [esp + 0x30], eax
mov ebx, eax
test ebx, ebx
je 0x41db2f
call fcn.0048acd1
push ebx
cmp ebx, eax
je 0x41da6a
call fcn.00488f02
add esp, 4
lea eax, [esp + 0x18]
mov edx, 3
lea ecx, [esp + 0x10]
push eax
push 0
push dword [esi + 0xc]
call fcn.0041d260
add esp, 0xc
mov edi, eax
jmp 0x41db57
push 0x200
lea eax, [esp + 0x50]
push 1
push eax
call fcn.004895af
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x41db57
mov ebx, dword [esp + 0x10]
xor edi, edi
push 0x10
call dword [0x4d75c4]
mov esi, eax
add esp, 4
test esi, esi
je 0x41db28
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esi], edi
push eax
call dword [0x4d75c4]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x41db1e
push dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.0048d4b0
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esi + 0xc], ecx
mov byte [ecx + eax], 0
mov dword [esi + 4], 1
test ebx, ebx
je 0x41daea
mov dword [ebx], esi
push dword [esp + 0x30]
add dword [esp + 0x1c], ecx
lea eax, [esp + 0x4c]
push 0x200
adc dword [esp + 0x24], edi
mov ebx, esi
push 1
push eax
mov dword [esp + 0x20], ebx
call fcn.004895af
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x41da90
jmp 0x41db57
push esi
call dword [0x4d75cc]
add esp, 4
mov edi, 0x1b
jmp 0x41db57
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41db48
push dword [esi + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.004280e0
add esp, 0xc
mov eax, dword [esp + 0x34]
mov edi, 0x1a
mov dword [eax], 0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x28], eax
test eax, eax
je 0x41db75
test edi, edi
jne 0x41dbb8
mov esi, eax
jmp 0x41d880
test edi, edi
jne 0x41dbb8
mov esi, dword [esp + 0x24]
cmp dword [ebx + 0x24], edi
je 0x41dba0
push esi
push str._r_n___s__
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbb8
mov ebx, dword [ebx]
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x41dbf8
mov edi, dword [esp + 0x14]
jmp 0x41d761
mov edi, 0x1b
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.0041d460
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41dbd7
push eax
call dword [0x4d75cc]
add esp, 4
push ebx
call dword [0x4d75cc]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00488366
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x41dbb8
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d3c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dbbc
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
test esi, esi
je 0x41dc3d
push esi
call dword [0x4d75cc]
add esp, 4
push ebx
call dword [0x4d75cc]
mov eax, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00488366
mov esp, ebp
pop ebp
ret