Function at 0x40bc80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5b4681
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a0]
mov ebp, dword [esp + 0x1a4]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bced
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x198], ebx
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bd1e
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x198], 1
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bd50
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x198], 2
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bd82
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x198], 3
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bdb4
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bdde
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], 0
push 0x103
lea ecx, [esp + 0x89]
push ebx
mov byte [esp + 0x1a0], 5
push ecx
mov byte [esp + 0x90], 0
call fcn.00587fb0
add esp, 0xc
lea esi, [esp + 0x28]
mov byte [esp + 0x1b], 0
call fcn.0041e9b0
mov edx, dword [esp + 0x30]
mov byte [esp + 0x198], 6
mov eax, dword [edx + 0x6cc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00407850
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x40bea2
lea edx, [eax - 1]
cmp edx, ebx
jl 0x40c073
cmp edx, eax
jg 0x40c073
movzx edx, word [ecx + edx*2]
cmp dx, 0x5c
je 0x40bea2
lea edx, [eax - 1]
cmp edx, ebx
jl 0x40c073
cmp edx, eax
jg 0x40c073
movzx eax, word [ecx + edx*2]
cmp ax, 0x2f
je 0x40bea2
push 0x5c
mov ecx, esi
call fcn.00408400
mov eax, dword [esp + 0x30]
add eax, 0x6d0
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 7
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bef8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push str.rb__ccsUTF_8
push ecx
call fcn.00583665
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
call fcn.00401780
cmp esi, ebx
je 0x40c0f3
push esi
push 0x103
lea edx, [esp + 0x8c]
push 1
push edx
call fcn.00584b8e
add esp, 0x10
test eax, eax
jbe 0x40bf87
nop
lea eax, [esp + 0x84]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bf50
sub eax, edx
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.00408180
push esi
push 0x103
lea ecx, [esp + 0x8c]
push 1
push ecx
call fcn.00584b8e
add esp, 0x10
test eax, eax
ja 0x40bf40
push esi
call fcn.0058392a
lea edx, [esp + 0x28]
add esp, 4
push edx
lea ecx, [esp + 0x6c]
call fcn.0041ef30
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 8
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._meta_version_
lea ecx, [esp + 0x18]
call fcn.004016c0
mov bl, 9
mov byte [esp + 0x198], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x40c0cb
cmp dword [ecx - 0xc], 0
jl 0x40c0cb
push eax
push ecx
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c0cb
sub eax, dword [esp + 0x1c]
sar eax, 1
mov esi, eax
js 0x40c0cb
mov ecx, dword [esp + 0x14]
add esi, dword [ecx - 0xc]
push 0x602d04
lea ecx, [esp + 0x18]
call fcn.00401680
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c07d
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
test esi, esi
jl 0x40c07d
cmp esi, ecx
jg 0x40c07d
push eax
mov eax, edx
lea ecx, [eax + esi*2]
push ecx
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c07d
sub eax, dword [esp + 0x1c]
sar eax, 1
jmp 0x40c080
push 0x80070057
call fcn.00401b20
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
call fcn.00407740
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x19c], 0xa
call fcn.00401a80
mov byte [esp + 0x198], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x40c239
push str._meta_version_
lea ecx, [esp + 0x18]
call fcn.004016c0
mov bl, 0xb
mov byte [esp + 0x198], bl
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40c20f
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jl 0x40c20f
push ecx
push eax
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c20f
sub eax, dword [ebp]
sar eax, 1
mov esi, eax
js 0x40c20f
mov edx, dword [esp + 0x14]
add esi, dword [edx - 0xc]
push 0x602d04
lea ecx, [esp + 0x18]
call fcn.00401680
mov edx, dword [esp + 0x14]
test edx, edx
je 0x40c193
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test esi, esi
jl 0x40c193
cmp esi, ecx
jg 0x40c193
push edx
lea eax, [eax + esi*2]
push eax
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c193
sub eax, dword [ebp]
sar eax, 1
jmp 0x40c196
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00407740
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 0xc
call fcn.00401a80
mov byte [esp + 0x198], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c1df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40c1f8
push 0x80004005
call fcn.00401b20
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00584130
add esp, 8
test eax, eax
je 0x40c20f
mov byte [esp + 0x1b], 1
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c23e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c23e
mov byte [esp + 0x1b], 1
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x40c478
push str.src_https:__
push eax
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c478
sub eax, dword [ebp]
sar eax, 1
mov esi, eax
js 0x40c478
mov bl, 0xe
mov eax, dword [esp + 0x34]
mov ecx, eax
inc eax
cmp ecx, 0x270f
mov dword [esp + 0x34], eax
jge 0x40c478
mov ecx, dword [ebp]
mov edx, dword [ecx - 0xc]
add esi, 5
lea eax, [esi + 1]
test eax, eax
jl 0x40c2b8
cmp eax, edx
jg 0x40c2b8
lea edx, [ecx + eax*2]
push 0x602d28
push edx
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c2b8
sub eax, dword [ebp]
sar eax, 1
jmp 0x40c2bb
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00407740
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0xd
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
cmp dword [edi - 0xc], 0
jl 0x40c32b
push 0x602d2c
push edi
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c32b
sub eax, edi
sar eax, 1
jns 0x40c470
push 0x2f
push edi
call fcn.005844d3
add esp, 8
test eax, eax
je 0x40c446
sub eax, edi
sar eax, 1
mov ecx, eax
test ecx, ecx
jle 0x40c446
mov eax, dword [edi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405ab0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], bl
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c39a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00401a80
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x19c], 0xf
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c3f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
push edi
push ebp
call fcn.00405830
mov edx, dword [esp + 0x44]
push 0
push edx
call fcn.00584007
add esp, 8
test eax, eax
jne 0x40c41e
cmp byte [esp + 0x1b], al
je 0x40c446
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x60], esp
push eax
lea edi, [esp + 0x68]
call fcn.00408d40
mov ecx, dword [esp + 0x50]
push 0
add ecx, 0x4f4
call fcn.00408b80
mov edi, dword [esp + 0x20]
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test esi, esi
jl 0x40c478
cmp esi, ecx
jg 0x40c478
lea ecx, [eax + esi*2]
push str.src_https:__
push ecx
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c478
sub eax, dword [ebp]
sar eax, 1
mov esi, eax
test esi, esi
jge 0x40c271
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x40c68d
push str.url_https:__
push eax
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c68d
mov ecx, dword [ebp]
sub eax, ecx
sar eax, 1
mov esi, eax
js 0x40c68d
mov bl, 0x11
lea ecx, [ecx]
mov eax, dword [esp + 0x34]
mov edx, eax
inc eax
cmp edx, 0x270f
mov dword [esp + 0x34], eax
jge 0x40c68d
add esi, 4
mov eax, dword [ecx - 0xc]
js 0x40c4ef
cmp esi, eax
jg 0x40c4ef
lea eax, [ecx + esi*2]
push 0x604188
push eax
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c4ef
sub eax, dword [ebp]
sar eax, 1
jmp 0x40c4f2
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.00407740
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0x10
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c53c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
push 0x2f
push edi
call fcn.005844d3
add esp, 8
test eax, eax
je 0x40c65b
sub eax, edi
sar eax, 1
mov ecx, eax
test ecx, ecx
jle 0x40c65b
mov eax, dword [edi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405ab0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], bl
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c5af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00401a80
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x19c], 0x12
call fcn.00401a80
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c60e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
push edi
push ebp
call fcn.00405830
mov edx, dword [esp + 0x44]
push 0
push edx
call fcn.00584007
add esp, 8
test eax, eax
jne 0x40c633
cmp byte [esp + 0x1b], al
je 0x40c65b
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x60], esp
push eax
lea edi, [esp + 0x68]
call fcn.00408d40
mov ecx, dword [esp + 0x50]
push 0
add ecx, 0x4f4
call fcn.00408b80
mov edi, dword [esp + 0x20]
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test esi, esi
jl 0x40c68d
cmp esi, ecx
jg 0x40c68d
lea ecx, [eax + esi*2]
push str.url_https:__
push ecx
call fcn.00584472
add esp, 8
test eax, eax
je 0x40c68d
mov ecx, dword [ebp]
sub eax, ecx
sar eax, 1
mov esi, eax
jns 0x40c4b0
mov esi, dword [esp + 0x30]
add esi, 0x4f4
call fcn.00408dd0
mov byte [esp + 0x198], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x80], 0x10
jb 0x40c6db
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.005759d0
add esp, 4
mov byte [esp + 0x198], 3
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c71b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c73b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x198], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x198], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c78b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x198], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x198], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.005832f8
add esp, 0x188
ret 8