Function at 0x478930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x629af0]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
jne 0x47897d
mov eax, dword [ebp - 0x24]
jmp 0x478f4c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00479650
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47899c
mov eax, 0x1b
jmp 0x478f4c
cmp dword [ebp + 0x14], 0
je 0x4789ad
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x23c], edx
jmp 0x4789b7
mov dword [ebp - 0x23c], str.Content_Type:_multipart_form_data
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
push str._s__boundary_s_r_n
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.004790d0
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478a04
cmp dword [ebp - 8], 0
je 0x4789f8
mov eax, dword [ebp - 8]
push eax
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 8], 0
xor ecx, ecx
jne 0x4789de
mov eax, dword [ebp - 0x24]
jmp 0x478f4c
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
je 0x478a35
push 0x5c9ed8
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004790d0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478a35
jmp 0x478e82
mov eax, dword [ebp - 8]
push eax
push str.___s_r_n
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478a5c
jmp 0x478e82
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004790d0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478a7f
jmp 0x478e82
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00478f60
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478aad
jmp 0x478e82
push 0x5cfe54
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004790d0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478ad0
jmp 0x478e82
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x24], 0
je 0x478b3f
cmp dword [ebp - 0x1c], 0
je 0x478af3
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 0x1c], 0
xor eax, eax
jne 0x478ad9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00479650
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x478b18
mov dword [ebp - 0x24], 0x1b
jmp 0x478e82
mov edx, dword [ebp - 0x1c]
push edx
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478b3f
jmp 0x478e82
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
je 0x478b99
mov ecx, dword [ebp - 0x1c]
push ecx
push str._r_n___s_r_nContent_Disposition:_attachment
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478b75
jmp 0x478e3b
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00479150
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478b97
jmp 0x478e3b
jmp 0x478bda
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x51
je 0x478bda
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x2c], 0
jne 0x478bb8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 1
je 0x478bcf
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00479150
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478bda
jmp 0x478e3b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
je 0x478c0d
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 - 0x28]
push ecx
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478c0d
jmp 0x478e3b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x478c4d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push str._r_n_s
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478c42
jmp 0x478c4d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
jmp 0x478c16
cmp dword [ebp - 0x24], 0
je 0x478c58
jmp 0x478e3b
push str._r_n_r_n
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004790d0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478c7b
jmp 0x478e3b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
and ecx, 1
jne 0x478c95
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 2
je 0x478d9f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
push 0x5ca4d0
call fcn.00470d30
add esp, 8
test eax, eax
je 0x478cba
call fcn.0057e5e7
mov dword [ebp - 0x240], eax
jmp 0x478cd4
push 0x5cfddc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0057ae47
add esp, 8
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x478d6c
call fcn.0057e5e7
cmp dword [ebp - 0x2c], eax
je 0x478d1d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0057b511
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
push 3
lea ecx, [ebp - 0x28]
push ecx
call fcn.00478f60
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x478d6a
mov edx, dword [ebp - 0x2c]
push edx
push 0x200
push 1
lea eax, [ebp - 0x238]
push eax
call fcn.0057b163
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x478d6a
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x238]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.00478f60
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478d68
jmp 0x478d6a
jmp 0x478d1d
jmp 0x478d9a
cmp dword [ebp + 8], 0
je 0x478d8a
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
push str.couldnt_open_file___s_
mov ecx, dword [ebp + 8]
push ecx
call fcn.004440d0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x24], 0x1a
jmp 0x478e22
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
and ecx, 0x10
je 0x478dcf
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.00478f60
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x478e22
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 0x40
je 0x478dff
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.00478f60
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x478e22
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00478f60
add esp, 0x14
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x478e3b
cmp dword [ebp - 0x24], 0
je 0x478b45
cmp dword [ebp - 0x24], 0
je 0x478e43
jmp 0x478e82
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
je 0x478e70
mov ecx, dword [ebp - 0x1c]
push ecx
push str._r_n___s__
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478e70
jmp 0x478e82
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x478a0a
cmp dword [ebp - 0x24], 0
jne 0x478ea4
mov eax, dword [ebp - 8]
push eax
push str._r_n___s___r_n
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004790d0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x478ef7
lea eax, [ebp - 0x20]
push eax
call fcn.004788d0
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x478ed0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 0x1c], 0
xor edx, edx
jne 0x478eb6
cmp dword [ebp - 8], 0
je 0x478eee
mov eax, dword [ebp - 8]
push eax
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 8], 0
xor ecx, ecx
jne 0x478ed4
mov eax, dword [ebp - 0x24]
jmp 0x478f4c
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
cmp dword [ebp - 0x1c], 0
je 0x478f1f
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 0x1c], 0
xor eax, eax
jne 0x478f05
cmp dword [ebp - 8], 0
je 0x478f3d
mov ecx, dword [ebp - 8]
push ecx
call dword [0x6252e8]
add esp, 4
mov dword [ebp - 8], 0
xor edx, edx
jne 0x478f23
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0057976c
mov esp, ebp
pop ebp
ret