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

Disassembly:
sub esp, 0x268
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x27c]
push ebx
mov ebx, dword [esp + 0x27c]
push esi
mov esi, dword [esp + 0x274]
push edi
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [ecx], edi
cmp eax, edi
jne 0x1000418c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.100377f0
add esp, 0x268
ret
push esi
call fcn.10036030
add esp, 4
push eax
push esi
call fcn.10036030
add esp, 4
push eax
push str._________________________08x_08x
call sym.libcurl.dll_curl_maprintf
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
cmp esi, edi
jne 0x100041d4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.100377f0
add esp, 0x268
ret
cmp ebx, edi
jne 0x100041dd
mov ebx, str.Content_Type:_multipart_form_data
push esi
push ebx
lea eax, [esp + 0x14]
push str._s__boundary_s_r_n
push eax
xor ebx, ebx
call fcn.10003c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10004208
push esi
call dword [0x1004403c]
add esp, 4
jmp 0x10004798
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
push ebp
or edi, dword [esp + 0x18]
je 0x1000423b
lea edx, [esp + 0x10]
push 0x100398ec
push edx
lea ebx, [esp + 0x1c]
call fcn.10003c30
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004734
mov esi, dword [esp + 0x28]
push esi
lea eax, [esp + 0x14]
push str.___s_r_n
push eax
lea ebx, [esp + 0x20]
call fcn.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
lea ecx, [esp + 0x10]
push str.Content_Disposition:_form_data__name_
push ecx
lea ebx, [esp + 0x1c]
call fcn.10003c30
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004734
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.10003b10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
lea ecx, [esp + 0x10]
push 0x100398b8
push ecx
lea ebx, [esp + 0x1c]
call fcn.10003c30
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004734
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x10004334
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100042de
push eax
call dword [0x1004403c]
add esp, 4
mov esi, dword [esp + 0x2c]
push esi
call fcn.10036030
add esp, 4
push eax
push esi
call fcn.10036030
add esp, 4
push eax
push str._________________________08x_08x
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x10004708
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.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
cmp dword [eax + 0x24], 0
je 0x10004373
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.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x28]
jmp 0x10004390
mov ecx, dword [eax + 0x28]
test cl, 0x51
je 0x100043a2
cmp dword [eax + 0x2c], 0
jne 0x10004386
test cl, 1
je 0x1000439a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.10003e80
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004734
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100043ce
push eax
lea ecx, [esp + 0x14]
push str._r_nContent_Type:__s
push ecx
lea ebx, [esp + 0x20]
call fcn.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x1000440c
lea esp, [esp]
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x14]
push str._r_n_s
push ecx
lea ebx, [esp + 0x20]
call fcn.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
mov esi, dword [esi + 4]
test esi, esi
jne 0x100043e0
jmp 0x10004414
test ebx, ebx
jne 0x10004734
lea edx, [esp + 0x10]
push str._r_n_r_n
push edx
lea ebx, [esp + 0x1c]
call fcn.10003c30
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004734
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x28]
test al, 3
jne 0x100044d5
test al, 0x10
je 0x10004468
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.10003b10
add esp, 0xc
mov ebx, eax
jmp 0x100046a7
test al, 0x40
je 0x100044b4
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x30]
push 0x10
call dword [0x10044038]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x1000448d
mov ebx, 0x1b
jmp 0x100046a7
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 0x100044a7
mov dword [ecx], eax
add dword [esp + 0x14], edi
adc dword [esp + 0x18], ebx
jmp 0x100046a7
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.10003b10
add esp, 0xc
mov ebx, eax
jmp 0x100046a7
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
push eax
push 0x100397d0
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x100044f6
call dword [sym.imp.MSVCR90.dll___iob_func]
jmp 0x10004508
mov ecx, dword [esi + 0xc]
push 0x100397e4
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x1000467e
call dword [sym.imp.MSVCR90.dll___iob_func]
push ebp
cmp ebp, eax
je 0x100045c1
call dword [sym.imp.MSVCR90.dll_fclose]
mov edi, dword [esi + 0xc]
push 0x10
call dword [0x10044038]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10004545
mov ebx, 0x1b
jmp 0x100046a7
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 0x10004563
mov dword [eax], esi
mov edx, dword [esi + 8]
push edx
push 0x100397d0
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x100045b0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__stat64]
add esp, 8
test eax, eax
jne 0x100045b7
mov edx, dword [esp + 0x42]
and edx, 0xf000
cmp edx, 0x4000
je 0x100045b7
mov eax, dword [esp + 0x54]
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x58]
adc dword [esp + 0x18], ecx
xor ebx, ebx
jmp 0x100046a7
mov ebx, 0x2b
jmp 0x100046a7
push 0x200
lea edx, [esp + 0x7c]
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100046a7
xor ebx, ebx
push 0x10
call dword [0x10044038]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000453b
lea eax, [esi + 1]
push eax
mov dword [edi], 0
call dword [0x10044038]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1000466d
push esi
lea ecx, [esp + 0x78]
push ecx
push eax
call sub.MSVCR90.dll_memcpy
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 0x1000463e
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 dword [sym.imp.MSVCR90.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100045e2
jmp 0x100046a7
push edi
call dword [0x1004403c]
add esp, 4
mov ebx, 0x1b
jmp 0x100046a7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10004698
mov edx, dword [esi + 0xc]
push edx
push str.couldnt_open_file___s_
push eax
call fcn.1000a2d0
add esp, 0xc
mov eax, dword [esp + 0x34]
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 0x100046c3
test ebx, ebx
jne 0x10004734
mov eax, dword [esp + 0x1c]
jmp 0x10004338
test ebx, ebx
jne 0x10004734
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x24], ebx
je 0x100046f1
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push str._r_n___s__
push eax
lea ebx, [esp + 0x20]
call fcn.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004734
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1000470f
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
jmp 0x10004211
mov ebx, 0x1b
jmp 0x10004734
test ebx, ebx
jne 0x10004734
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.10003c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10004760
lea edx, [esp + 0x30]
push edx
call fcn.10003d40
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x10004753
push eax
call dword [0x1004403c]
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call dword [0x1004403c]
jmp 0x10004794
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 0x10004783
push eax
call dword [0x1004403c]
add esp, 4
push esi
call dword [0x1004403c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
add esp, 4
pop ebp
mov ecx, dword [esp + 0x270]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100377f0
add esp, 0x268
ret