Function at 0x45cfd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x214], ebx
mov dword [ecx], ebx
cmp eax, ebx
je 0x45d578
call fcn.0045cfa0
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x45d054
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x45d05d
mov edi, str.Content_Type:_multipart_form_data
push eax
push edi
push str._s__boundary_s_r_n
push 0
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x45d512
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x224], ecx
lea ebx, [ebx]
or ebx, dword [ebp - 0x20c]
je 0x45d0bc
lea edx, [ebp - 0x210]
push 0x49fe10
push edx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d4ef
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x210]
push str.___s_r_n
push ecx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4ef
lea edx, [ebp - 0x210]
push str.Content_Disposition:_form_data__name_
push edx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d4ef
mov ebx, dword [ebp - 0x218]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
push eax
lea ecx, [ebp - 0x208]
push esi
push ecx
lea ecx, [ebp - 0x210]
call fcn.0045cac0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4ef
lea edx, [ebp - 0x210]
push 0x4a2b30
push edx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d4ef
cmp dword [ebx + 0x24], eax
je 0x45d1b5
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x45d175
push eax
call dword [0x4b9578]
add esp, 4
mov esi, dword [ebp - 0x220]
call fcn.0045cfa0
mov edi, eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x45d4bd
push edi
lea eax, [ebp - 0x210]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push eax
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4f5
mov edi, ebx
mov dword [ebp - 0x218], edi
lea ecx, [ecx]
cmp dword [ebx + 0x24], 0
je 0x45d203
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push str._r_n___s_r_nContent_Disposition:_attachment
push edx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4ef
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov eax, edi
jmp 0x45d224
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x45d236
cmp dword [ebx + 0x2c], 0
jne 0x45d214
test al, 1
je 0x45d22e
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x208]
push edx
push eax
mov eax, ebx
call fcn.0045cd30
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d4ef
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x45d262
push eax
lea ecx, [ebp - 0x210]
push str._r_nContent_Type:__s
push ecx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4ef
mov edi, dword [edi + 0x20]
test edi, edi
je 0x45d2a0
lea esp, [esp]
mov edx, dword [edi]
push edx
lea eax, [ebp - 0x210]
push str._r_n_s
push eax
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4ef
mov edi, dword [edi + 4]
test edi, edi
jne 0x45d270
jmp 0x45d2a8
test esi, esi
jne 0x45d4ef
lea ecx, [ebp - 0x210]
push str._r_n_r_n
push ecx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d4ef
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x45d34a
test al, 0x10
je 0x45d2fc
mov edx, dword [ebx + 0x18]
push edx
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x208]
push 1
push eax
lea ecx, [ebp - 0x210]
call fcn.0045cac0
add esp, 0xc
mov esi, eax
jmp 0x45d454
test al, 0x40
je 0x45d325
mov ecx, dword [ebx + 0x10]
push ecx
lea edx, [ebp - 0x208]
push 2
push edx
mov edx, dword [ebx + 0x30]
lea ecx, [ebp - 0x210]
call fcn.0045cac0
add esp, 0xc
mov esi, eax
jmp 0x45d454
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
push eax
lea ecx, [ebp - 0x208]
push 1
push ecx
lea ecx, [ebp - 0x210]
call fcn.0045cac0
add esp, 0xc
mov esi, eax
jmp 0x45d454
mov edi, dword [ebp - 0x218]
mov edx, dword [edi + 0xc]
push edx
push 0x49f9c0
call fcn.0045b970
add esp, 8
test eax, eax
je 0x45d36c
call fcn.00476832
jmp 0x45d37d
mov eax, dword [edi + 0xc]
push 0x49c65c
push eax
call fcn.0047931f
add esp, 8
mov edi, eax
test edi, edi
je 0x45d421
call fcn.00476832
push edi
cmp edi, eax
je 0x45d3bf
call fcn.00475ef3
mov edx, dword [ebp - 0x218]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [ebp - 0x208]
push 3
push ecx
lea ecx, [ebp - 0x210]
call fcn.0045cac0
add esp, 0x10
mov esi, eax
jmp 0x45d454
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.00479e02
add esp, 0x10
test eax, eax
je 0x45d454
lea esp, [esp]
push eax
lea ecx, [ebp - 0x208]
push 1
push ecx
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x204]
call fcn.0045cac0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d454
push edi
push 0x200
lea edx, [ebp - 0x204]
push 1
push edx
call fcn.00479e02
add esp, 0x10
test eax, eax
jne 0x45d3e0
jmp 0x45d454
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45d443
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 0xc]
push edx
push str.couldnt_open_file___s_
push eax
call fcn.0044b5a0
add esp, 0xc
mov eax, dword [ebp - 0x228]
mov dword [eax], 0
mov esi, 0x1a
mov ecx, dword [ebp - 0x218]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x45d476
test esi, esi
jne 0x45d4ef
mov edi, eax
jmp 0x45d1c0
test esi, esi
jne 0x45d4ef
cmp dword [ebx + 0x24], esi
je 0x45d4a6
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push str._r_n___s__
push eax
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4ef
mov eax, dword [ebx]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x45d4c4
mov ebx, dword [ebp - 0x210]
jmp 0x45d090
mov esi, 0x1b
jmp 0x45d4f5
test esi, esi
jne 0x45d4ef
mov edi, dword [ebp - 0x21c]
push edi
lea ecx, [ebp - 0x210]
push str._r_n___s___r_n
push ecx
lea esi, [ebp - 0x208]
call fcn.0045cc10
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45d535
mov edi, dword [ebp - 0x214]
lea edx, [ebp - 0x224]
push edx
call fcn.0045cc70
add esp, 4
test edi, edi
je 0x45d512
push edi
call dword [0x4b9578]
add esp, 4
mov eax, dword [ebp - 0x21c]
push eax
call dword [0x4b9578]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x20c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x45d560
push eax
call dword [0x4b9578]
add esp, 4
push edi
call dword [0x4b9578]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047421a
mov esp, ebp
pop ebp
ret