Function at 0x1021cd90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [eax], edi
cmp dword [ebp + 0x10], edi
jne 0x1021cdb9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.101f34f0
add esp, 4
push eax
push esi
call fcn.101f34f0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.10206a90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x18], esi
cmp esi, edi
jne 0x1021cdf2
pop esi
mov eax, 0x1b
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x1021cdfe
mov eax, str.Content_Type:_multipart_form_data
push ebx
push esi
push eax
push str._s__boundary_s_r_n
push edi
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1021ce2b
push esi
call dword [0x102d99b8]
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
or edi, dword [ebp - 8]
je 0x1021ce57
lea edx, [ebp - 0xc]
push 0x102a622c
push edx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1021d3e6
mov esi, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0xc]
push str.___s_r_n
push eax
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1021d3e6
lea ecx, [ebp - 0xc]
push str.Content_Disposition:_form_data__name_
push ecx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1021d3e6
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 4]
push 0x10
call dword [0x102d99b4]
mov edi, eax
add esp, 4
test edi, edi
je 0x1021d3bd
mov dword [edi], 0
test esi, esi
jne 0x1021ceca
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1021cec1
sub esi, ecx
lea edx, [esi + 1]
push edx
call dword [0x102d99b4]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1021d3b3
push esi
push ebx
push eax
call fcn.10230070
mov eax, dword [edi + 8]
mov dword [edi + 0xc], esi
mov byte [esi + eax], 0
mov eax, dword [ebp - 4]
xor ecx, ecx
add esp, 0xc
mov dword [edi + 4], ecx
mov dword [ebp - 4], edi
cmp eax, ecx
je 0x1021cf08
mov dword [eax], edi
add dword [ebp - 0xc], esi
push 0x102ac7d4
lea ebx, [ebp - 4]
adc dword [ebp - 8], ecx
lea ecx, [ebp - 0xc]
push ecx
call fcn.1021c990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1021d3e6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], ebx
je 0x1021cf96
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1021cf45
push eax
call dword [0x102d99b8]
add esp, 4
mov esi, dword [ebp + 8]
push esi
call fcn.101f34f0
add esp, 4
push eax
push esi
call fcn.101f34f0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.10206a90
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1021d3bd
push eax
lea edx, [ebp - 0xc]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push edx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1021d3e6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea esp, [esp]
cmp dword [eax + 0x24], 0
je 0x1021cfd5
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push str._r_n___s_r_nContent_Disposition:_attachment
push ecx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1021d3e6
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
push edx
push eax
mov eax, dword [ebp - 0x14]
jmp 0x1021cff0
mov ecx, dword [eax + 0x28]
test cl, 0x51
je 0x1021d002
cmp dword [eax + 0x2c], 0
jne 0x1021cfe8
test cl, 1
je 0x1021cffa
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.1021cb10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1021d3e6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x1021d02b
push eax
lea ecx, [ebp - 0xc]
push str._r_nContent_Type:__s
push ecx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1021d3e6
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x1021d05f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0xc]
push str._r_n_s
push ecx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1021d3e6
mov esi, dword [esi + 4]
test esi, esi
jne 0x1021d035
jmp 0x1021d067
test ebx, ebx
jne 0x1021d3e6
lea edx, [ebp - 0xc]
push str._r_n_r_n
push edx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1021d3e6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x28]
test al, 3
jne 0x1021d19d
test al, 0x10
je 0x1021d136
mov edi, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x14]
push 0x10
call dword [0x102d99b4]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1021d0ba
lea ebx, [eax + 0x1b]
jmp 0x1021d35c
mov dword [esi], 0
test edi, edi
jne 0x1021d0d9
mov edi, ebx
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x1021d0d0
sub edi, ecx
lea eax, [edi + 1]
push eax
call dword [0x102d99b4]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x1021d101
push esi
call dword [0x102d99b8]
add esp, 4
mov ebx, 0x1b
jmp 0x1021d35c
push edi
push ebx
push eax
call fcn.10230070
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 8]
xor ebx, ebx
add esp, 0xc
mov dword [esi + 0xc], edi
mov byte [edi + ecx], 0
mov dword [esi + 4], 1
mov dword [ebp - 4], esi
cmp eax, ebx
je 0x1021d12b
mov dword [eax], esi
add dword [ebp - 0xc], edi
adc dword [ebp - 8], ebx
jmp 0x1021d35c
test al, 0x40
je 0x1021d17e
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x30]
push 0x10
call dword [0x102d99b4]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x1021d15b
mov ebx, 0x1b
jmp 0x1021d35c
mov ecx, dword [ebp - 4]
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [ebp - 4], eax
cmp ecx, ebx
je 0x1021d173
mov dword [ecx], eax
add dword [ebp - 0xc], edi
adc dword [ebp - 8], ebx
jmp 0x1021d35c
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push 1
push eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
call fcn.1021c880
add esp, 0xc
mov ebx, eax
jmp 0x1021d35c
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0xc]
push ecx
push 0x1025bc98
call fcn.1021b570
add esp, 8
test eax, eax
je 0x1021d1c1
call fcn.102311d7
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1021d1d7
mov edx, dword [edi + 0xc]
push 0x10256a58
push edx
call fcn.102327c7
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x1021d335
call fcn.102311d7
push esi
cmp esi, eax
je 0x1021d281
call fcn.102322dc
mov edi, dword [edi + 0xc]
push 0x10
call dword [0x102d99b4]
mov esi, eax
add esp, 8
test esi, esi
jne 0x1021d210
mov ebx, 0x1b
jmp 0x1021d35c
mov eax, dword [ebp - 4]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [ebp - 4], esi
test eax, eax
je 0x1021d22c
mov dword [eax], esi
mov eax, dword [esi + 8]
push eax
push 0x1025bc98
call fcn.1021b570
add esp, 8
test eax, eax
jne 0x1021d270
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x58]
push ecx
push edx
call fcn.10238dfc
add esp, 8
test eax, eax
jne 0x1021d277
mov eax, dword [ebp - 0x52]
and eax, 0xf000
cmp eax, 0x4000
je 0x1021d277
mov ecx, dword [ebp - 0x40]
add dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x3c]
adc dword [ebp - 8], edx
xor ebx, ebx
jmp 0x1021d35c
mov ebx, 0x2b
jmp 0x1021d35c
push 0x200
lea eax, [ebp - 0x258]
push 1
push eax
call fcn.1023259a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1021d35c
xor ebx, ebx
push 0x10
call dword [0x102d99b4]
mov edi, eax
add esp, 4
test edi, edi
je 0x1021d206
lea ecx, [esi + 1]
push ecx
mov dword [edi], ebx
call dword [0x102d99b4]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1021d324
push esi
lea edx, [ebp - 0x258]
push edx
push eax
call fcn.10230070
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [edi + 0xc], esi
mov byte [esi + eax], bl
mov dword [edi + 4], 1
cmp dword [ebp - 4], ebx
je 0x1021d2f9
mov ecx, dword [ebp - 4]
mov dword [ecx], edi
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0xc], esi
push edx
push 0x200
adc dword [ebp - 8], ebx
lea eax, [ebp - 0x258]
push 1
push eax
mov dword [ebp - 4], edi
call fcn.1023259a
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1021d2a3
jmp 0x1021d35c
push edi
call dword [0x102d99b8]
add esp, 4
mov ebx, 0x1b
jmp 0x1021d35c
mov eax, dword [ebp + 8]
test eax, eax
je 0x1021d34e
mov ecx, dword [edi + 0xc]
push ecx
push str.couldnt_open_file___s_
push eax
call fcn.101fa7b0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov ebx, 0x1a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1021d375
test ebx, ebx
jne 0x1021d3e6
mov eax, dword [ebp + 0x10]
jmp 0x1021cfa0
test ebx, ebx
jne 0x1021d3e6
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x24], ebx
je 0x1021d39f
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push str._r_n___s__
push edx
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1021d3e6
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1021d3c4
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
jmp 0x1021ce31
push edi
call dword [0x102d99b8]
add esp, 4
mov ebx, 0x1b
jmp 0x1021d3e6
test ebx, ebx
jne 0x1021d3e6
mov esi, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0xc]
push str._r_n___s___r_n
push eax
lea ebx, [ebp - 4]
call fcn.1021c990
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1021d419
lea ecx, [ebp - 0x20]
push ecx
call fcn.1021ca60
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x1021d403
push eax
call dword [0x102d99b8]
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [0x102d99b8]
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1021d438
push eax
call dword [0x102d99b8]
add esp, 4
push esi
call dword [0x102d99b8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
add esp, 4
pop ebx
pop esi
mov dword [ecx], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret