Function at 0x10045470
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x268
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x26c]
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x27c]
push esi
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x278]
push edi
mov edi, dword [esp + 0x280]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [ecx], esi
cmp eax, esi
jne 0x100454ea
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.1004ea1f
add esp, 0x268
ret
push ebp
call fcn.10045400
mov ebp, eax
mov dword [esp + 0x24], ebp
cmp ebp, esi
jne 0x10045517
pop ebp
pop edi
mov eax, 0x1b
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.1004ea1f
add esp, 0x268
ret
cmp edi, esi
jne 0x10045520
mov edi, str.Content_Type:_multipart_form_data
push ebx
push ebp
push edi
lea eax, [esp + 0x18]
push str._s__boundary_s_r_n
push eax
xor ebx, ebx
call fcn.10044fc0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1004554b
push ebp
call dword [0x10081004]
mov eax, edi
jmp 0x10045ab3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
or esi, dword [esp + 0x18]
je 0x1004557d
lea edx, [esp + 0x10]
push 0x10070534
push edx
lea ebx, [esp + 0x1c]
call fcn.10044fc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10045a51
mov ebp, dword [esp + 0x28]
push ebp
lea eax, [esp + 0x14]
push str.___s_r_n
push eax
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
lea ecx, [esp + 0x10]
push str.Content_Disposition:_form_data__name_
push ecx
lea ebx, [esp + 0x1c]
call fcn.10044fc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10045a51
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 4]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ecx + 8]
call fcn.10044ea0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
lea ecx, [esp + 0x10]
push 0x10075374
push ecx
lea ebx, [esp + 0x1c]
call fcn.10044fc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10045a51
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x10045656
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10045620
push eax
call dword [0x10081004]
add esp, 4
call fcn.10045400
mov dword [esp + 0x24], eax
test eax, eax
je 0x10045a25
push eax
lea edx, [esp + 0x14]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push edx
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
lea ebx, [ebx]
cmp dword [eax + 0x24], 0
je 0x1004569b
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push str._r_n___s_r_nContent_Disposition:_attachment
push ecx
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x28]
jmp 0x100456b8
mov ecx, dword [eax + 0x28]
test cl, 0x51
je 0x100456ca
cmp dword [eax + 0x2c], 0
jne 0x100456ae
test cl, 1
je 0x100456c2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.10045180
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10045a51
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100456f6
push eax
lea ecx, [esp + 0x14]
push str._r_nContent_Type:__s
push ecx
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x1004572d
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x14]
push str._r_n_s
push ecx
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
mov esi, dword [esi + 4]
test esi, esi
jne 0x10045701
jmp 0x10045735
test ebx, ebx
jne 0x10045a51
lea edx, [esp + 0x10]
push str._r_n_r_n
push edx
lea ebx, [esp + 0x1c]
call fcn.10044fc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10045a51
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x28]
test al, 3
jne 0x100457f6
test al, 0x10
je 0x10045789
mov ebx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x14]
push 1
push edx
call fcn.10044ea0
add esp, 0xc
mov ebx, eax
jmp 0x100459c4
test al, 0x40
je 0x100457d5
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x30]
push 0x10
call dword [section..data]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x100457ae
mov ebx, 0x1b
jmp 0x100459c4
mov ecx, dword [esp + 0x10]
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [esp + 0x10], eax
cmp ecx, ebx
je 0x100457c8
mov dword [ecx], eax
add dword [esp + 0x14], edi
adc dword [esp + 0x18], ebx
jmp 0x100459c4
mov ebx, dword [ecx + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x14]
push 1
push edx
call fcn.10044ea0
add esp, 0xc
mov ebx, eax
jmp 0x100459c4
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
push eax
push 0x1006f0bc
call fcn.10041d80
add esp, 8
test eax, eax
je 0x10045816
call fcn.10051bbb
jmp 0x10045827
mov ecx, dword [esi + 0xc]
push 0x100752a4
push ecx
call fcn.100528a6
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x1004599b
call fcn.10051bbb
push ebp
cmp ebp, eax
je 0x100458dd
call fcn.1005015c
mov edi, dword [esi + 0xc]
push 0x10
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10045862
mov ebx, 0x1b
jmp 0x100459c4
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [esp + 0x10], esi
test eax, eax
je 0x10045880
mov dword [eax], esi
mov edx, dword [esi + 8]
push edx
push 0x1006f0bc
call fcn.10041d80
add esp, 8
test eax, eax
jne 0x100458cc
mov ecx, dword [esi + 8]
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.10054085
add esp, 8
test eax, eax
jne 0x100458d3
mov edx, dword [esp + 0x42]
and edx, 0xf000
cmp edx, 0x8000
jne 0x100458d3
mov eax, dword [esp + 0x54]
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x58]
adc dword [esp + 0x18], ecx
xor ebx, ebx
jmp 0x100459c4
mov ebx, 0x2b
jmp 0x100459c4
push 0x200
lea edx, [esp + 0x7c]
push 1
push edx
call fcn.10051b9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100459c4
xor ebx, ebx
lea ecx, [ecx]
push 0x10
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x10045858
lea eax, [esi + 1]
push eax
mov dword [edi], 0
call dword [section..data]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1004598a
push esi
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.100508e0
mov edx, dword [edi + 8]
add esp, 0xc
cmp dword [esp + 0x10], 0
mov dword [edi + 0xc], esi
mov byte [esi + edx], 0
mov dword [edi + 4], 1
je 0x1004595c
mov eax, dword [esp + 0x10]
mov dword [eax], edi
add dword [esp + 0x14], esi
push ebp
push 0x200
adc dword [esp + 0x20], 0
lea ecx, [esp + 0x7c]
push 1
push ecx
mov dword [esp + 0x20], edi
call fcn.10051b9e
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10045900
jmp 0x100459c4
push edi
call dword [0x10081004]
add esp, 4
mov ebx, 0x1b
jmp 0x100459c4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100459b5
mov edx, dword [esi + 0xc]
push edx
push str.couldnt_open_file___s_
push eax
call fcn.100253d0
add esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov ebx, 0x1a
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x20], eax
test eax, eax
je 0x100459e0
test ebx, ebx
jne 0x10045a51
mov eax, dword [esp + 0x1c]
jmp 0x10045660
test ebx, ebx
jne 0x10045a51
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x24], ebx
je 0x10045a0e
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push str._r_n___s__
push eax
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10045a51
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10045a2c
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
jmp 0x10045553
mov ebx, 0x1b
jmp 0x10045a51
test ebx, ebx
jne 0x10045a51
mov esi, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x14]
push str._r_n___s___r_n
push ecx
lea ebx, [esp + 0x20]
call fcn.10044fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10045a7d
lea edx, [esp + 0x2c]
push edx
call fcn.100450d0
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x10045a70
push eax
call dword [0x10081004]
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call dword [0x10081004]
jmp 0x10045ab1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10045aa0
push eax
call dword [0x10081004]
add esp, 4
push esi
call dword [0x10081004]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [esp + 0x278]
add esp, 4
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.1004ea1f
add esp, 0x268
ret