Function at 0x480d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50874f
mov eax, dword fs:[0]
push eax
sub esp, 0xc18
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0xc28]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, ecx
mov edi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
test esi, esi
jne 0x480ed4
test edi, edi
je 0x480dc2
cmp word [edi], cx
je 0x480dc2
mov ecx, edi
call fcn.00481a70
mov esi, eax
jmp 0x480dca
call fcn.00445420
mov esi, dword [eax + 4]
test esi, esi
jne 0x480ed4
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
push 0x1c7
push ecx
mov dword [esp + 0xc38], esi
call fcn.00433510
mov byte [esp + 0xc38], 1
mov eax, dword [eax]
push edi
push eax
lea edi, [esp + 0x30]
call fcn.00404890
mov byte [esp + 0xc40], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x480e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebx]
test ebx, ebx
je 0x480e51
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov edi, eax
jmp 0x480e53
xor edi, edi
lea esi, [esp + 0x14]
call fcn.00401140
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
push 0x40
push ecx
push esi
lea edx, [esp + 0x50]
push edx
call fcn.004bb6a0
push edi
lea edi, [esp + 0x48]
call fcn.0048b3b0
mov ecx, edi
call fcn.004bb800
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 0x480ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0xc30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x481646
push esi
lea ecx, [esp + 0xb0]
push ecx
call fcn.004830e0
mov edi, 2
mov dword [esp + 0xc30], edi
mov eax, dword [esp + 0x368]
cmp eax, 0xffffffff
je 0x481607
test al, 0x10
jne 0x481607
lea esi, [esp + 0x2c]
call fcn.004351e0
mov edx, esi
mov byte [esp + 0xc30], 3
push edx
mov edx, dword [esp + 0x368]
call fcn.00435260
lea esi, [esp + 0x14]
lea eax, [esp + 0x2c]
call fcn.00436cc0
mov eax, dword [eax]
push str..tgz
push eax
call fcn.004e4707
add esp, 8
test eax, eax
mov byte [esp + 0xc30], 3
mov eax, dword [esp + 0x14]
sete byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x480fd5
mov dword [esp + 0x24], edi
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc30], 0xd
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x368]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jle 0x481549
mov ecx, dword [ebx]
test ecx, ecx
je 0x4812ab
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
jmp 0x4812ad
lea esi, [esp + 0x24]
lea eax, [esp + 0x2c]
call fcn.00436cc0
mov byte [esp + 0xc30], 5
mov eax, dword [eax]
push 0x51503c
push eax
mov dword [esp + 0x20], 1
call fcn.004e4707
add esp, 8
test eax, eax
je 0x48103a
lea esi, [esp + 0x14]
lea eax, [esp + 0x2c]
call fcn.00436cc0
mov dword [esp + 0xc30], 6
push eax
mov ecx, str..bz2
mov dword [esp + 0x1c], 3
call fcn.004047e0
mov byte [esp + 0x13], 0
test eax, eax
jne 0x48103f
mov byte [esp + 0x13], 1
test byte [esp + 0x18], 2
je 0x481054
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x14]
call fcn.004016f0
mov dword [esp + 0xc30], 3
test byte [esp + 0x18], 1
je 0x481074
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x24]
call fcn.004016f0
cmp byte [esp + 0x13], 0
je 0x48123c
lea esi, [esp + 0x14]
lea eax, [esp + 0x2c]
call fcn.00435a40
push eax
mov ecx, str..tar
mov byte [esp + 0xc34], 7
call fcn.004047e0
test eax, eax
mov ecx, esi
sete byte [esp + 0x13]
mov byte [esp + 0xc30], 3
call fcn.004016f0
cmp byte [esp + 0x13], 0
je 0x4810c5
mov dword [esp + 0x24], edi
jmp 0x48119f
lea esi, [esp + 0x24]
lea eax, [esp + 0x2c]
call fcn.00435a20
mov edi, eax
mov byte [esp + 0xc30], 8
call fcn.00417800
mov eax, dword [eax]
sub eax, 0x10
call fcn.004048c0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xc30], 0xa
call fcn.004016f0
cmp dword [esi - 0xc], 0
jl 0x481123
push str._tar__
push esi
call fcn.004e4d6c
add esp, 8
test eax, eax
je 0x481123
sub eax, esi
sar eax, 1
test eax, eax
jg 0x481157
lea ecx, [esp + 0x14]
push ecx
mov eax, 4
lea ecx, [esp + 0x20]
call fcn.00429020
mov byte [esp + 0xc30], 0xb
or dword [esp + 0x18], 4
push eax
mov ecx, str._tar
call fcn.00404370
mov byte [esp + 0x13], 0
test eax, eax
jne 0x48115c
mov byte [esp + 0x13], 1
mov dword [esp + 0xc30], 0xa
test byte [esp + 0x18], 4
je 0x48117c
and dword [esp + 0x18], 0xfffffffb
lea ecx, [esp + 0x1c]
call fcn.004016f0
xor edx, edx
cmp byte [esp + 0x13], dl
lea ecx, [esp + 0x14]
setne dl
mov byte [esp + 0xc30], 3
mov dword [esp + 0x24], edx
call fcn.004016f0
mov edi, 2
lea esi, [esp + 0x28]
lea eax, [esp + 0x2c]
call fcn.004359e0
mov byte [esp + 0xc30], 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00485940
mov eax, dword [eax]
push 0x516fb4
push eax
call fcn.004e6b39
mov esi, eax
add esp, 8
lea eax, [esp + 0x1c]
call fcn.0048c350
lea ecx, [esp + 0x28]
mov byte [esp + 0xc30], 3
call fcn.004016f0
test esi, esi
je 0x481227
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], 0
call fcn.004e6a58
add esp, 0x10
cmp dword [esp + 0x14], 0x88b1f
je 0x48121e
mov dword [esp + 0x24], 1
push esi
call fcn.004e673c
add esp, 4
cmp dword [esp + 0x24], edi
je 0x480f7d
cmp dword [esp + 0x24], 1
je 0x480f7d
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0x368]
push ecx
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov eax, dword [ebx]
test eax, eax
je 0x48127e
add eax, 0xffffff5c
jmp 0x481280
xor eax, eax
cmp dword [eax + 0x11c], edi
jne 0x481295
mov eax, dword [eax + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x364]
push ecx
mov eax, ebx
call fcn.00482ec0
mov edi, eax
jmp 0x481482
xor eax, eax
push eax
lea edi, [esp + 0x18]
call fcn.004350d0
lea esi, [esp + 0x44]
mov byte [esp + 0xc30], 0xe
call fcn.00404b40
mov byte [esp + 0xc30], 0xf
mov ecx, dword [ebx]
xor esi, esi
mov dword [esp + 0x44], 1
cmp ecx, esi
je 0x4812e8
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
jmp 0x4812ea
xor eax, eax
lea ecx, [esp + 0x364]
push ecx
lea edi, [esp + 0x54]
mov dword [esp + 0x4c], eax
call fcn.0041ca50
lea eax, [esp + 0x14]
lea edi, [esp + 0x68]
call fcn.00404930
lea edx, [esp + 0x36c]
push edx
mov dword [esp + 0x7c], esi
call fcn.004833b0
sub esp, 0x3c
mov byte [esp + 0xc6c], 0x10
mov eax, esp
mov dword [esp + 0x64], esp
push eax
lea edi, [esp + 0x84]
call fcn.0040edf0
lea ecx, [esp + 0xabc]
push ecx
call fcn.004a4a80
cmp eax, esi
je 0x4814fb
mov dword [esp + 0xb18], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0x370]
call fcn.00412bf0
cmp eax, 1
jne 0x4814fb
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xac]
push edx
push eax
mov eax, dword [esp + 0x36c]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
cmp dword [esp + 0x24], 1
jne 0x481406
push 0x511ddc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404510
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x30]
mov byte [esp + 0xc38], 0x11
or dword [esp + 0x20], 8
push edx
call fcn.0041d700
add esp, 0xc
mov dword [esp + 0xc30], 0x12
mov ecx, dword [eax]
or dword [esp + 0x18], 0x10
call fcn.00482fb0
mov byte [esp + 0x13], 1
test eax, eax
je 0x48140b
mov byte [esp + 0x13], 0
test byte [esp + 0x18], 0x10
je 0x481420
and dword [esp + 0x18], 0xffffffef
lea ecx, [esp + 0x28]
call fcn.004016f0
mov dword [esp + 0xc30], 0x10
test byte [esp + 0x18], 8
je 0x48143b
lea ecx, [esp + 0x20]
call fcn.004016f0
cmp byte [esp + 0x13], 0
je 0x48149e
mov eax, dword [esp + 0x364]
push eax
mov eax, ebx
call fcn.00482ec0
mov edi, eax
lea ecx, [esp + 0x36c]
mov byte [esp + 0xc30], 0xf
call fcn.00483300
lea esi, [esp + 0x44]
call fcn.0040ed90
lea ecx, [esp + 0x14]
call fcn.004016f0
lea ecx, [esp + 0x1c]
call fcn.004016f0
lea esi, [esp + 0x2c]
call fcn.004618a0
lea eax, [esp + 0xac]
call fcn.00481670
mov eax, edi
jmp 0x481646
push 0x511ddc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404510
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0xc3c], 0x13
call fcn.0041d700
add esp, 0xc
mov byte [esp + 0xc30], 0x14
mov eax, dword [eax]
push eax
mov eax, ebx
call fcn.00482ec0
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.004016f0
lea ecx, [esp + 0x20]
call fcn.004016f0
jmp 0x481453
lea ecx, [esp + 0x36c]
mov byte [esp + 0xc30], 0xf
call fcn.00483300
lea esi, [esp + 0x44]
call fcn.0040ed90
lea ecx, [esp + 0x14]
call fcn.004016f0
lea ecx, [esp + 0x1c]
call fcn.004016f0
lea esi, [esp + 0x2c]
call fcn.004618a0
lea eax, [esp + 0xac]
call fcn.00481670
mov eax, 0x80004001
jmp 0x481646
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0x368]
push ecx
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov ecx, dword [ebx]
test ecx, ecx
je 0x48159b
mov eax, dword [ecx]
mov edx, dword [esp + 0x364]
mov eax, dword [eax + 0x24]
push 1
push 0
push edx
call eax
mov edi, eax
jmp 0x4815a0
mov edi, 0x80004001
mov byte [esp + 0xc30], 3
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 0x4815c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c]
call fcn.004618a0
mov dword [esp + 0xc30], 0xffffffff
mov eax, dword [esp + 0x364]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481497
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x481646
mov edi, dword [esp + 0x20]
push 0
push esi
push ebx
call fcn.004816a0
mov esi, eax
mov dword [esp + 0xc30], 0xffffffff
mov eax, dword [esp + 0x364]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.004e3edb
mov esp, ebp
pop ebp
ret 0xc