Function at 0x469980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x230
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x248]
push edi
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x248]
mov ebx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [eax], edi
cmp ebx, edi
je 0x469e7e
call fcn.0046a020
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4699ee
lea eax, [edi + 0x1b]
jmp 0x469e80
test esi, esi
jne 0x4699f7
mov esi, str.Content_Type:_multipart_form_data
push ebp
push esi
push str._s__boundary_s_r_n
push 0
lea esi, [esp + 0x24]
call fcn.00469850
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x469e35
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov edi, edi
or edi, dword [esp + 0x1c]
je 0x469a46
lea eax, [esp + 0x18]
push 0x5d2c30
push eax
lea esi, [esp + 0x1c]
call fcn.00469850
mov esi, eax
add esp, 8
test esi, esi
jne 0x469e16
push ebp
lea ecx, [esp + 0x1c]
push str.___s_r_n
push ecx
lea esi, [esp + 0x20]
call fcn.00469850
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469e16
lea edx, [esp + 0x18]
push str.Content_Disposition:_form_data__name_
push edx
lea esi, [esp + 0x1c]
call fcn.00469850
mov esi, eax
add esp, 8
test esi, esi
jne 0x469e16
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x18]
push esi
push ecx
mov ecx, dword [ebx + 4]
call fcn.00469750
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469e16
lea edx, [esp + 0x18]
push 0x5d8c4c
push edx
lea esi, [esp + 0x1c]
call fcn.00469850
mov esi, eax
add esp, 8
test esi, esi
jne 0x469e16
cmp dword [ebx + 0x24], eax
je 0x469b13
mov eax, dword [esp + 0x20]
test eax, eax
je 0x469ae1
push eax
call dword [0x5fe464]
add esp, 4
call fcn.0046a020
mov dword [esp + 0x20], eax
test eax, eax
je 0x469de6
push eax
lea eax, [esp + 0x1c]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push eax
lea esi, [esp + 0x20]
call fcn.00469850
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469e16
mov ebp, ebx
cmp dword [ebx + 0x24], 0
je 0x469b5b
xor edi, edi
cmp dword [ebp + 0x2c], edi
jne 0x469b34
mov eax, dword [ebp + 0xc]
call fcn.00469940
mov edi, eax
test edi, edi
je 0x469ddf
mov eax, dword [ebp + 0x2c]
test eax, eax
jne 0x469b3d
mov eax, edi
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x20]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push edx
lea esi, [esp + 0x24]
call fcn.00469850
add esp, 0x10
jmp 0x469ba1
mov ecx, dword [ebx + 0x28]
test cl, 0x51
je 0x469bb9
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x469b7f
test cl, 1
je 0x469bb1
test eax, eax
jne 0x469b7f
mov eax, dword [ebx + 0xc]
call fcn.00469940
mov edi, eax
jmp 0x469b81
xor edi, edi
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x469b8a
mov eax, edi
push eax
lea eax, [esp + 0x1c]
push str.__filename__s_
push eax
lea esi, [esp + 0x20]
call fcn.00469850
add esp, 0xc
mov esi, eax
test edi, edi
je 0x469bb1
push edi
call dword [0x5fe464]
add esp, 4
test esi, esi
jne 0x469e12
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x469be1
push eax
lea ecx, [esp + 0x1c]
push str._r_nContent_Type:__s
push ecx
lea esi, [esp + 0x20]
call fcn.00469850
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469e12
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x469c14
mov edx, dword [edi]
push edx
lea eax, [esp + 0x1c]
push str._r_n_s
push eax
lea esi, [esp + 0x20]
call fcn.00469850
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469e12
mov edi, dword [edi + 4]
test edi, edi
jne 0x469be8
jmp 0x469c1c
test esi, esi
jne 0x469e12
lea ecx, [esp + 0x18]
push str._r_n_r_n
push ecx
lea esi, [esp + 0x1c]
call fcn.00469850
mov esi, eax
add esp, 8
test esi, esi
jne 0x469e12
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x469cae
test al, 0x10
je 0x469c68
mov ecx, dword [ebx + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 1
push eax
mov eax, dword [ebx + 0x18]
call fcn.00469750
add esp, 0xc
mov esi, eax
jmp 0x469d91
test al, 0x40
je 0x469c8d
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x30]
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00469750
add esp, 0xc
mov esi, eax
jmp 0x469d91
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, dword [ebx + 0xc]
call fcn.00469750
add esp, 0xc
mov esi, eax
jmp 0x469d91
mov eax, dword [ebp + 0xc]
mov ecx, 0x5d56f4
call fcn.0047b720
test eax, eax
je 0x469cc6
call fcn.004a8f2e
jmp 0x469cd7
mov edx, dword [ebp + 0xc]
push 0x5d2c50
push edx
call fcn.004a3a26
add esp, 8
mov edi, eax
test edi, edi
je 0x469d69
call fcn.004a8f2e
push edi
cmp edi, eax
je 0x469d13
call fcn.004a3dc4
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push 3
push ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
call fcn.00469750
add esp, 0xc
mov esi, eax
jmp 0x469d91
push 0x200
lea edx, [esp + 0x40]
push 1
push edx
call fcn.004a3d30
add esp, 0x10
test eax, eax
je 0x469d91
jmp 0x469d30
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x44]
call fcn.00469750
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469d91
push edi
push 0x200
lea eax, [esp + 0x40]
push 1
push eax
call fcn.004a3d30
add esp, 0x10
test eax, eax
jne 0x469d30
jmp 0x469d91
mov esi, dword [esp + 0x34]
test esi, esi
je 0x469d82
mov ecx, dword [ebp + 0xc]
push ecx
push str.couldnt_open_file___s__n
call fcn.00475ac0
add esp, 8
mov edx, dword [esp + 0x28]
mov dword [edx], 0
mov esi, 0x1a
mov ebp, dword [ebp + 0x24]
test ebp, ebp
je 0x469da2
test esi, esi
je 0x469b15
jmp 0x469e12
test esi, esi
jne 0x469e12
cmp dword [ebx + 0x24], esi
je 0x469dcc
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push str._r_n___s__
push ecx
lea esi, [esp + 0x20]
call fcn.00469850
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x469e12
mov ebx, dword [ebx]
test ebx, ebx
je 0x469ded
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
jmp 0x469a20
mov esi, 0x1b
jmp 0x469e12
mov esi, 0x1b
jmp 0x469e16
test esi, esi
jne 0x469e12
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push str._r_n___s___r_n
push eax
lea esi, [esp + 0x20]
call fcn.00469850
mov esi, eax
add esp, 0xc
test esi, esi
je 0x469e43
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
call fcn.004698c0
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x469e35
push eax
call dword [0x5fe464]
add esp, 4
push ebp
call dword [0x5fe464]
add esp, 4
mov eax, esi
jmp 0x469e80
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x469e66
push eax
call dword [0x5fe464]
add esp, 4
mov edx, dword [esp + 0x24]
push edx
call dword [0x5fe464]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0x230
ret