Function at 0x403740
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x443ffe
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4571dc]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4571dc]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov esi, ecx
push 0x44760c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
call fcn.004018a0
mov ecx, esi
mov dword [esp + 0x44c], 0
call fcn.00402d40
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00402ea0
test eax, eax
je 0x403812
push 0x44760c
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.004018a0
mov ecx, dword [esp + 0x18]
push 0x447688
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x458], 1
call fcn.0042950a
add esp, 0xc
test eax, eax
je 0x403844
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x44c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x44c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40383d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403dc8
push 0x401
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00428a10
mov edx, dword [esp + 0x34]
push edx
push 0x400
lea eax, [esp + 0x50]
push 1
push eax
call fcn.00429427
add esp, 0x1c
test eax, eax
je 0x403bfc
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402160
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 2
call fcn.004024f0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x403b9c
push 0x447684
push eax
call fcn.00428c4f
add esp, 8
test eax, eax
je 0x403b9c
sub eax, dword [esp + 0x14]
sar eax, 1
mov edi, eax
js 0x403b9c
push 0x44760c
lea ecx, [esp + 0x20]
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x30]
mov byte [esp + 0x450], 3
call fcn.004018a0
push edi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 4
call fcn.00402470
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x44c], 5
cmp eax, esi
je 0x40396b
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x40395d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40395d
push eax
call fcn.00401380
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x403954
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x40396b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401610
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
sub eax, edi
dec eax
push eax
inc edi
push edi
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
call fcn.004023c0
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x44c], 6
cmp eax, esi
je 0x403a0d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4039ff
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4039ff
push eax
call fcn.00401380
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4039f6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x403a0d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401610
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call fcn.004035c0
test eax, eax
je 0x403c6d
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x403a7d
cmp eax, dword [esi]
jne 0x403a7d
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x403ab8
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x403cff
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00428392
add esp, 0x10
lea ebp, [edi + 0x10]
mov dword [esp + 0x38], ebp
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0x14]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x38]
push ecx
push edx
push esi
mov ecx, ebx
mov byte [esp + 0x458], 7
call fcn.00402ad0
push 1
mov ecx, ebx
mov edi, eax
call fcn.004031b0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
lea eax, [ebp - 0x10]
mov byte [esp + 0x44c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x403b25
or edi, 0xffffffff
jmp 0x403b44
push 0x447684
push eax
call fcn.00428c4f
add esp, 8
test eax, eax
jne 0x403b3c
or edi, 0xffffffff
jmp 0x403b44
sub eax, dword [esp + 0x14]
sar eax, 1
mov edi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jge 0x4038d0
push 0x401
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00428a10
mov edx, dword [esp + 0x34]
push edx
push 0x400
lea eax, [esp + 0x50]
push 1
push eax
call fcn.00429427
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x44c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x403876
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jle 0x403d56
push 0x44760c
lea ecx, [esp + 0x24]
call fcn.004018a0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
mov bl, 8
push eax
mov ecx, esi
mov byte [esp + 0x454], bl
call fcn.004035c0
test eax, eax
jne 0x403d04
mov ecx, dword [esi + 0x24]
push str.Decrypt
push ecx
call fcn.00415e30
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00401c10
lea ecx, [esp + 0x14]
call fcn.00401c10
lea ecx, [esp + 0x18]
call fcn.00401c10
xor eax, eax
jmp 0x403dc8
mov ecx, dword [esi + 0x24]
push str.Decrypt
push ecx
call fcn.00415e30
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x44c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4037ea
call fcn.00401ae0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov byte [esp + 0x450], 9
call fcn.00403700
lea ecx, [esp + 0x24]
mov byte [esp + 0x44c], bl
call fcn.00401c10
push 0x44760c
lea ecx, [esp + 0x18]
call fcn.00401810
lea ecx, [esp + 0x20]
call fcn.00401c10
mov eax, dword [esp + 0x28]
push eax
call fcn.0042910b
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov ecx, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esi + 0x1c], ecx
add esp, 4
mov byte [esp + 0x44c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x44c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00428852
add esp, 0x43c
ret