Function at 0x431861
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [eax], ebx
cmp edi, ebx
je 0x431d5f
push ecx
call fcn.0043183b
pop ecx
mov dword [ebp - 0x220], eax
cmp eax, ebx
jne 0x4318d5
push 0x1b
pop eax
jmp 0x431d61
cmp esi, ebx
jne 0x4318de
mov esi, str.Content_Type:_multipart_form_data
push eax
push esi
push str._s__boundary_s_r_n
xor ebx, ebx
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x43190f
push dword [ebp - 0x220]
call dword [0x5476e8]
pop ecx
mov eax, esi
jmp 0x431d61
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x210]
or eax, dword [ebp - 0x20c]
je 0x43194a
push 0x502e9c
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
test esi, esi
jne 0x431ceb
push dword [ebp - 0x220]
lea ebx, [ebp - 0x210]
push str.___s_r_n
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431ceb
push str.Content_Disposition:_form_data__name_
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
test esi, esi
jne 0x431ceb
push dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00431409
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x431ceb
push 0x508228
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
test esi, esi
jne 0x431ceb
cmp dword [edi + 0x24], eax
je 0x431a1f
cmp dword [ebp - 0x218], eax
je 0x4319e2
push dword [ebp - 0x218]
call dword [0x5476e8]
pop ecx
push dword [ebp - 0x224]
call fcn.0043183b
pop ecx
mov dword [ebp - 0x218], eax
test eax, eax
je 0x431cc0
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431ceb
mov dword [ebp - 0x21c], edi
cmp dword [edi + 0x24], 0
je 0x431a65
push dword [ebp - 0x218]
lea ebx, [ebp - 0x210]
push str._r_n___s_r_nContent_Disposition:_attachment
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431ceb
mov eax, ebx
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x21c]
jmp 0x431a86
mov eax, dword [edi + 0x28]
test al, 0x51
je 0x431a97
cmp dword [edi + 0x2c], 0
jne 0x431a76
test al, 1
je 0x431a8f
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, edi
call fcn.004315fe
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x431ceb
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x431ac7
push eax
push str._r_nContent_Type:__s
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431ceb
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x431b19
jmp 0x431ae2
mov eax, dword [ebp - 0x214]
push dword [eax]
lea ebx, [ebp - 0x210]
push str._r_n_s
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431ceb
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 4]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x431adc
test esi, esi
jne 0x431ceb
push str._r_n_r_n
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
test esi, esi
jne 0x431ceb
mov eax, dword [edi + 0x28]
test al, 3
jne 0x431b82
test al, 0x10
je 0x431b69
push dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.00431409
add esp, 0xc
jmp 0x431bf3
mov ecx, dword [edi + 0x10]
test al, 0x40
lea eax, [ebp - 0x208]
je 0x431b7d
push dword [edi + 0x30]
push 2
jmp 0x431b5b
push dword [edi + 0xc]
jmp 0x431b59
mov ebx, dword [ebp - 0x21c]
push dword [ebx + 0xc]
push 0x5008f4
call fcn.0042e714
pop ecx
pop ecx
test eax, eax
je 0x431ba2
call fcn.0044753a
jmp 0x431bb1
push 0x508154
push dword [ebx + 0xc]
call fcn.0044892c
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x431c3f
call fcn.0044753a
push dword [ebp - 0x214]
cmp dword [ebp - 0x214], eax
je 0x431c23
call fcn.004486c4
push dword [ebx + 0xc]
lea eax, [ebp - 0x208]
push 3
push eax
lea ebx, [ebp - 0x210]
xor ecx, ecx
call fcn.00431409
add esp, 0x10
mov esi, eax
jmp 0x431c6a
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x208]
push 1
push ecx
lea ebx, [ebp - 0x210]
mov ecx, eax
call fcn.00431409
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x431c6a
push dword [ebp - 0x214]
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.0044734c
add esp, 0x10
test eax, eax
jne 0x431bf7
jmp 0x431c6a
cmp dword [ebp - 0x224], 0
je 0x431c5e
push dword [ebx + 0xc]
push str.couldnt_open_file___s_
push dword [ebp - 0x224]
call fcn.00410708
add esp, 0xc
mov eax, dword [ebp - 0x22c]
and dword [eax], 0
push 0x1a
pop esi
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x431c87
test esi, esi
je 0x431a25
jmp 0x431ceb
test esi, esi
jne 0x431ceb
cmp dword [edi + 0x24], esi
je 0x431cb4
push dword [ebp - 0x218]
lea ebx, [ebp - 0x210]
push str._r_n___s__
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431ceb
mov edi, dword [edi]
test edi, edi
jne 0x43191b
jmp 0x431cc3
push 0x1b
pop esi
test esi, esi
jne 0x431ceb
push dword [ebp - 0x220]
lea ebx, [ebp - 0x210]
push str._r_n___s___r_n
lea esi, [ebp - 0x208]
call fcn.0043150d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x431d17
lea eax, [ebp - 0x228]
push eax
call fcn.0043155c
cmp dword [ebp - 0x218], 0
pop ecx
je 0x4318fb
push dword [ebp - 0x218]
call dword [0x5476e8]
pop ecx
jmp 0x4318fb
cmp dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x230]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [eax + 4], ecx
je 0x431d44
push dword [ebp - 0x218]
call dword [0x5476e8]
pop ecx
push dword [ebp - 0x220]
call dword [0x5476e8]
mov eax, dword [ebp - 0x228]
pop ecx
mov ecx, dword [ebp - 0x22c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446098
leave
ret