Function at 0x2241380
Capabilities:
Check http status code
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3cc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x81c]
push esi
push edi
xor edi, edi
test ah, 0x20
push edi
mov dword [esp + 0x10], edi
push edi
je 0x22413ba
mov ecx, dword [ebx + 0x838]
mov eax, dword [ebx + 0x83c]
push ecx
call dword [eax + 0x30c]
jmp 0x22413d3
mov eax, dword [ebx + 0x838]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x22413d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0xc]
lea edx, [esi + 0x6c]
push edx
lea eax, [ebx + 0x38]
push eax
mov dword [ebx], 0xa0ef0fe6
call fcn.0226b20c
lea ecx, [esi + 0xbc]
push ecx
lea edx, [ebx + 0x78]
push edx
call fcn.0226b20c
lea eax, [esi + 0x8c]
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.0226b20c
lea edx, [esi + 0x13c]
push edx
lea eax, [ebx + 0xf8]
push eax
call fcn.0226b20c
lea ecx, [esi + 0x15c]
push ecx
lea edx, [ebx + 0x398]
push edx
call fcn.0226b20c
lea eax, [esi + 0x16c]
push eax
lea ecx, [ebx + 0x3a8]
push ecx
call fcn.0226b20c
lea edx, [esi + 0x17c]
push edx
lea eax, [ebx + 0x3b8]
push eax
call fcn.0226b20c
mov ecx, dword [esi + 0x28]
mov dword [ebx + 0x844], ecx
mov edx, dword [esi + 0x30]
mov dword [ebx + 0x85c], edx
mov edx, dword [ebx + 0x81c]
and edx, 0xfffff3ff
mov dword [ebx + 0x840], edi
mov dword [ebx + 0x858], edi
mov dword [ebx + 0x81c], edx
mov cl, byte [esi + 0x18c]
add esp, 0x38
test cl, 2
mov eax, edx
je 0x224149e
or eax, 2
mov dword [ebx + 0x81c], eax
mov cl, byte [esi + 0x18c]
mov eax, 8
test al, cl
je 0x22414b3
or dword [ebx + 0x81c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0xd68], eax
mov ecx, dword [esi + 0x34]
mov dword [ebx + 0xd6c], ecx
mov edx, dword [esi + 0x38]
mov dword [ebx + 0xd70], edx
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0xd74], eax
mov ecx, dword [esi + 0x40]
mov dword [ebx + 0xd78], ecx
mov edx, dword [esi + 0x44]
mov dword [ebx + 0xd7c], edx
mov eax, dword [esi + 0x48]
mov dword [ebx + 0xd80], eax
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0xd84], ecx
mov edx, dword [esi + 0x50]
mov dword [ebx + 0xd88], edx
mov eax, dword [esi + 0x54]
mov dword [ebx + 0xd8c], eax
mov ecx, dword [esi + 0x58]
mov dword [ebx + 0xd90], ecx
mov edx, dword [esi + 0x5c]
mov dword [ebx + 0xd94], edx
mov eax, dword [esi + 0x60]
mov dword [ebx + 0xd98], eax
mov ecx, dword [esi + 0x64]
cmp dword [ebx + 0x844], edi
mov dword [ebx + 0xd9c], ecx
mov word [ebx + 0xd60], di
mov word [ebx + 0xd62], di
jle 0x2241cc3
mov ecx, dword [ebx + 0x81c]
test ch, 0x20
mov eax, dword [esi + 0x2c]
push edi
je 0x2241570
mov edx, dword [ebx + 0x83c]
push eax
mov eax, dword [ebx + 0x838]
push eax
call dword [edx + 0x30c]
jmp 0x224158a
mov ecx, dword [ebx + 0x838]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x224158a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], edi
mov edi, edi
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x844]
jge 0x2241899
xor eax, eax
push 0x5ac
mov ecx, 0x3b
lea edi, [esp + 0x15c]
push 1
rep stosd dword es:[edi], eax
call fcn.0226b127
mov esi, eax
add esp, 8
test esi, esi
jne 0x22415d2
mov dword [esp + 0xc], 0x446
jmp 0x2241881
push 0xec
lea edx, [esp + 0x15c]
push edx
push ebx
call fcn.02240980
add esp, 0xc
cmp eax, 0xec
je 0x22415fc
mov dword [esp + 0xc], 0x45c
jmp 0x2241878
mov dword [esi], 0xa0ef0fe2
mov eax, dword [ebx + 0x81c]
test ah, 0x20
lea edi, [esi + 0x98]
je 0x224161a
push 0x2277364
jmp 0x2241621
lea eax, [ebx + 0x158]
push eax
push edi
call fcn.0226b20c
add esp, 8
lea ecx, [esp + 0x198]
push ecx
push edi
call fcn.0226b1e2
lea edx, [esp + 0x160]
push edx
lea eax, [esi + 0x18]
push eax
call fcn.0226b20c
lea ecx, [esp + 0x1a8]
push ecx
lea edx, [esi + 0x58]
push edx
call fcn.0226b20c
mov eax, dword [esp + 0x244]
mov dword [esi + 0x298], eax
mov ecx, dword [esp + 0x244]
lea edx, [esp + 0x1d0]
push edx
lea eax, [esi + 0x2dc]
and ecx, 0xfffff5ff
push eax
mov dword [esi + 0x298], ecx
call fcn.0226b20c
lea ecx, [esp + 0x218]
lea eax, [esi + 0x31c]
push ecx
push eax
call fcn.0226b20c
mov edx, dword [esp + 0x240]
xor edi, edi
mov dword [esi + 0x568], edx
mov dword [esi + 0x2d8], esi
mov eax, dword [esp + 0x258]
mov ecx, eax
push 0xc8
push ecx
mov dword [esi + 0x57c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x2a8], edi
mov dword [esi + 0x2ac], edi
mov dword [esi + 0x2d0], edi
mov dword [esi + 0x55c], edi
mov dword [esi + 0x560], edi
mov dword [esi + 0x564], edi
call fcn.0226b127
add esp, 0x30
cmp eax, edi
mov dword [esi + 0x578], eax
jne 0x2241718
mov dword [esp + 0xc], 0x446
jmp 0x2241878
mov edi, eax
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x1c], 0
jne 0x2241861
mov edi, edi
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 0x57c]
jge 0x22418c6
push 0xdc
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.02240980
add esp, 0xc
cmp eax, 0xdc
je 0x2241767
mov dword [esp + 0xc], 0x45c
jmp 0x2241846
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.0226b20c
lea edx, [esp + 0x6c]
push edx
lea eax, [edi + 0x40]
push eax
call fcn.0226b20c
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
mov dword [edi + 0x80], ecx
mov ecx, dword [esp + 0xc0]
mov dword [edi + 0x84], edx
mov edx, dword [esp + 0xc4]
mov dword [edi + 0x88], eax
mov eax, dword [esp + 0xc8]
mov dword [edi + 0x8c], ecx
mov ecx, dword [esp + 0xcc]
mov dword [edi + 0x90], edx
mov edx, dword [esp + 0xd0]
mov dword [edi + 0x94], eax
mov eax, dword [esp + 0xd4]
mov dword [edi + 0x98], ecx
mov ecx, dword [esp + 0xd8]
mov dword [edi + 0x9c], edx
mov edx, dword [esp + 0xdc]
mov dword [edi + 0xa0], eax
mov eax, dword [esp + 0xe0]
mov dword [edi + 0xa4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [edi + 0xa8], edx
mov edx, dword [esp + 0xe8]
mov dword [edi + 0xac], eax
mov eax, dword [esp + 0xec]
add esp, 0x10
mov dword [edi + 0xb0], ecx
mov dword [edi + 0xb4], edx
mov dword [edi + 0xb8], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
inc edx
add edi, 0xc8
test eax, eax
mov dword [esp + 0x1c], edx
je 0x2241730
mov ecx, dword [esi + 0x578]
push ecx
call fcn.0226affd
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x2241881
push esi
call fcn.0226affd
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
inc ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x2241590
mov eax, dword [ebx + 0x81c]
mov esi, dword [esi + 0x34]
test ah, 0x20
mov eax, dword [ebx + 0x838]
push 0
je 0x22419df
mov edx, dword [ebx + 0x83c]
push esi
push eax
call dword [edx + 0x30c]
jmp 0x22419f4
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x2241861
mov eax, dword [esi + 0x568]
test eax, eax
jle 0x22419bd
push 4
push eax
call fcn.0226b127
add esp, 8
test eax, eax
mov dword [esi + 0x564], eax
jne 0x22418fe
mov dword [esp + 0xc], 0x446
jmp 0x2241861
mov eax, dword [esi + 0x57c]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x22419bd
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, edi
mov ecx, dword [esi + 0x578]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx + 0x80]
cmp eax, 2
je 0x2241940
cmp eax, 0x14
je 0x2241940
cmp eax, 0x13
jne 0x2241998
mov eax, dword [ebx + 0x81c]
test ah, 0x20
lea edi, [esi + 0x35c]
je 0x2241958
push 0x2277364
jmp 0x224195f
lea eax, [ebx + 0x158]
push eax
push edi
call fcn.0226b20c
add esp, 8
lea eax, [esi + 0x31c]
push eax
push edi
call fcn.0226b1e2
mov ecx, dword [esi + 0x578]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ecx, edx
mov edx, dword [esi + 0x564]
add esp, 8
mov dword [eax + edx], ecx
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x57c]
inc eax
add edx, 0xc8
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x2241920
mov eax, dword [ebx + 0x840]
mov dword [esi + 8], eax
mov dword [ebx + 0x840], esi
mov eax, dword [esi + 8]
test eax, eax
je 0x2241881
mov dword [eax + 4], esi
jmp 0x2241881
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x22419f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x2241cc7
jmp 0x2241a10
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x85c]
jge 0x2241cf0
push 0x3c4
push 1
call fcn.0226b127
mov esi, eax
add esp, 8
test esi, esi
jne 0x2241a42
mov dword [esp + 0xc], 0x446
jmp 0x2241ca5
mov eax, dword [ebx + 0x81c]
mov edi, 0x2000
test edi, eax
je 0x2241a73
mov ecx, dword [ebx + 0x838]
mov edx, dword [ebx + 0x83c]
push 0x190
lea eax, [esp + 0x24c]
push eax
push ecx
call dword [edx + 0x318]
jmp 0x2241aa9
mov eax, dword [ebx + 0x838]
push 0
lea edx, [esp + 0x14]
push edx
push 0x190
lea ecx, [esp + 0x254]
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2241aa5
or eax, 0xffffffff
jmp 0x2241aa9
mov eax, dword [esp + 0x10]
cmp eax, 0x190
je 0x2241abd
mov dword [esp + 0xc], 0x45c
jmp 0x2241ca5
test dword [ebx + 0x81c], edi
lea edi, [esi + 0x1a0]
je 0x2241ad2
push 0x2277364
jmp 0x2241ad9
lea edx, [ebx + 0x158]
push edx
push edi
call fcn.0226b20c
add esp, 8
lea eax, [esp + 0x288]
push eax
push edi
call fcn.0226b1e2
lea ecx, [esp + 0x250]
push ecx
lea edx, [esi + 0x10]
push edx
call fcn.0226b20c
lea eax, [esp + 0x298]
push eax
lea ecx, [esi + 0x50]
push ecx
call fcn.0226b20c
lea edx, [esp + 0x2c0]
push edx
lea eax, [esi + 0x90]
push eax
call fcn.0226b20c
lea ecx, [esp + 0x398]
push ecx
lea edi, [esi + 0x160]
push edi
call fcn.0226b20c
mov edx, dword [esp + 0x3e0]
mov dword [esi + 0x3b4], edx
mov eax, dword [esp + 0x3e4]
mov dword [esi + 0x3a0], eax
mov ecx, dword [esp + 0x3e8]
xor eax, eax
mov dword [esi + 0x3a4], ecx
mov edx, dword [esp + 0x3ec]
push edi
push ebx
mov dword [esi + 0x3b0], edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x3a8], eax
mov dword [esi + 0x3ac], eax
call fcn.0225ed50
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x3b0]
push 0x48
push eax
call fcn.0226b127
add esp, 0x38
test eax, eax
mov dword [esi + 0x3b8], eax
jne 0x2241bb6
mov dword [esp + 0xc], 0x446
jmp 0x2241ca5
mov eax, dword [esp + 0xc]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
jne 0x2241c8e
jmp 0x2241bd0
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x3b0]
jge 0x2241cce
mov eax, dword [ebx + 0x81c]
test ah, 0x20
je 0x2241c0a
mov ecx, dword [ebx + 0x838]
mov edx, dword [ebx + 0x83c]
push 0x54
lea eax, [esp + 0x104]
push eax
push ecx
call dword [edx + 0x318]
jmp 0x2241c3d
mov eax, dword [ebx + 0x838]
push 0
lea edx, [esp + 0x14]
push edx
push 0x54
lea ecx, [esp + 0x10c]
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2241c39
or eax, 0xffffffff
jmp 0x2241c3d
mov eax, dword [esp + 0x10]
cmp eax, 0x54
je 0x2241c4c
mov dword [esp + 0xc], 0x45c
jmp 0x2241c76
mov eax, dword [esi + 0x3b8]
lea edx, [esp + 0x100]
push edx
add eax, edi
push eax
call fcn.0226b20c
mov ecx, dword [esi + 0x3b8]
mov edx, dword [esp + 0x148]
add esp, 8
mov dword [ecx + edi + 0x40], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
inc edx
add edi, 0x48
test eax, eax
mov dword [esp + 0x14], edx
je 0x2241bd0
mov ecx, dword [esi + 0x3b8]
push ecx
call fcn.0226affd
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x2241cae
push esi
call fcn.0226affd
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
inc ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x2241a10
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x2241c8e
mov eax, dword [ebx + 0x858]
mov dword [esi + 4], eax
mov dword [ebx + 0x858], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x2241cae
mov dword [eax], esi
jmp 0x2241cae
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x2241d01
push ebx
call fcn.022400f0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret