Function at 0x484680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
jne 0x4846c6
mov eax, dword [ebp - 0x10]
jmp 0x484ce9
mov ecx, dword [ebp + 8]
push ecx
call fcn.004854c0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4846e5
mov eax, 0x1b
jmp 0x484ce9
cmp dword [ebp + 0x14], 0
je 0x4846f6
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x230], edx
jmp 0x484700
mov dword [ebp - 0x230], str.Content_Type:_multipart_form_data
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
push str._s__boundary_s_r_n
push 0
lea edx, [ebp - 4]
push edx
call fcn.00484f30
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48473c
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x4ab90c]
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x484ce9
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
or edx, dword [ebp - 0x14]
test edx, edx
je 0x48476f
push 0x494cc4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00484f30
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48476f
jmp 0x484c63
mov edx, dword [ebp - 0x1c]
push edx
push str.___s_r_n
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x484796
jmp 0x484c63
push str.Content_Disposition:_form_data__name_
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00484f30
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4847b9
jmp 0x484c63
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
cdq
push edx
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
push 1
lea edx, [ebp - 4]
push edx
call fcn.00484cf0
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4847e9
jmp 0x484c63
push 0x49e32c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00484f30
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48480c
jmp 0x484c63
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x24], 0
je 0x48486a
mov eax, dword [ebp - 0x20]
push eax
call dword [0x4ab90c]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004854c0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x484843
mov dword [ebp - 0x10], 0x1b
jmp 0x484c63
mov edx, dword [ebp - 0x20]
push edx
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48486a
jmp 0x484c63
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
je 0x4848c4
mov ecx, dword [ebp - 0x20]
push ecx
push str._r_n___s_r_nContent_Disposition:_attachment
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4848a0
jmp 0x484c1c
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00484fa0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4848c2
jmp 0x484c1c
jmp 0x484909
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x51
test edx, edx
je 0x484909
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x2c], 0
jne 0x4848e7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 1
test edx, edx
je 0x4848fe
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00484fa0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x484909
jmp 0x484c1c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
je 0x48493c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
push str._r_nContent_Type:__s
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48493c
jmp 0x484c1c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x48497c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
push str._r_n_s
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x484971
jmp 0x48497c
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
jmp 0x484945
cmp dword [ebp - 0x10], 0
je 0x484987
jmp 0x484c1c
push str._r_n_r_n
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00484f30
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4849aa
jmp 0x484c1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
and ecx, 1
test ecx, ecx
jne 0x4849c8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 2
test eax, eax
je 0x484af5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
push 0x495474
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4849ed
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov dword [ebp - 0x234], eax
jmp 0x484a08
push 0x494428
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x484ac2
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [sym.imp.MSVCRT.dll__iob]
je 0x484a55
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
push 4
lea eax, [ebp - 4]
push eax
call fcn.00484cf0
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x484ac0
mov ecx, dword [ebp - 0x28]
push ecx
push 0x200
push 1
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x484ac0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
push edx
push ecx
lea eax, [ebp - 0x22c]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
call fcn.00484cf0
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x484abc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
and eax, 0x10
test eax, eax
jne 0x484abc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
and edx, 0x20
test edx, edx
je 0x484abe
jmp 0x484ac0
jmp 0x484a55
jmp 0x484af0
cmp dword [ebp + 8], 0
je 0x484ae0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push str.couldnt_open_file___s_
mov edx, dword [ebp + 8]
push edx
call fcn.004466f0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x10], 0x1a
jmp 0x484c03
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x10
test edx, edx
je 0x484b2c
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x18]
cdq
push edx
push eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
call fcn.00484cf0
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x484c03
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 0x40
test eax, eax
je 0x484b9f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x80
test edx, edx
je 0x484b60
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x23c], ecx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x238], edx
jmp 0x484b73
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
cdq
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], edx
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 3
lea eax, [ebp - 4]
push eax
call fcn.00484cf0
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x484c03
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x80
test edx, edx
je 0x484bc6
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x244], ecx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x240], edx
jmp 0x484bd9
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
cdq
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], edx
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
push 2
lea eax, [ebp - 4]
push eax
call fcn.00484cf0
add esp, 0x18
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x484c1c
cmp dword [ebp - 0x10], 0
je 0x484870
cmp dword [ebp - 0x10], 0
je 0x484c24
jmp 0x484c63
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
je 0x484c51
mov ecx, dword [ebp - 0x20]
push ecx
push str._r_n___s__
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x484c51
jmp 0x484c63
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x484742
cmp dword [ebp - 0x10], 0
jne 0x484c85
mov eax, dword [ebp - 0x1c]
push eax
push str._r_n___s___r_n
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00484f30
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x484cb6
lea eax, [ebp - 8]
push eax
call fcn.00484610
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x4ab90c]
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x4ab90c]
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x484ce9
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [0x4ab90c]
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x4ab90c]
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret