Function at 0x41eaa0
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c518b
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
push esi
mov edi, ecx
push eax
lea eax, [esp + 0x134]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14c], 7
mov dword [esp + 0x148], esi
mov word [esp + 0x138], si
call fcn.004017d0
push 0x10
lea ecx, [esp + 0x12c]
mov dword [esp + 0x174], esi
call fcn.0040a9b0
add esp, 4
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push esi
push eax
lea eax, [esp + 0x150]
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], esi
mov word [esp + 0x154], si
call fcn.004017d0
lea eax, [edi + 0xb8]
mov byte [esp + 0x170], 1
mov ecx, dword [eax + 4]
cmp ecx, esi
je 0x41eb8a
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
je 0x41eb8a
push esi
call fcn.004225d0
mov eax, dword [eax]
mov dword [edi + 0xb4], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x27]
push eax
lea ecx, [esp + 0x148]
push ecx
lea eax, [esp + 0x130]
push eax
push ebx
mov ecx, edi
mov byte [esp + 0x37], 0
call edx
cmp byte [esp + 0x27], 0
jne 0x41f899
lea esi, [esp + 0x144]
call fcn.0040ad00
test al, al
jne 0x41ec1e
mov edx, esi
push edx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0xdc]
call fcn.0040aaf0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x134]
mov byte [esp + 0x17c], 2
call fcn.004017d0
mov byte [esp + 0x170], 1
cmp dword [esp + 0xec], 8
jb 0x41ec1e
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.004abbe4
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
lea edx, [esp + 0x130]
push edx
lea eax, [ebx + 0x2c]
call fcn.004017d0
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x14c]
push eax
lea eax, [ebx + 0x10]
call fcn.004017d0
mov ecx, dword [edi + 0x114]
cmp ecx, esi
je 0x41ec58
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebx
call eax
cmp dword [ebx + 0x98], esi
je 0x41f594
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
xor edi, edi
push edi
push edi
push ebx
mov ecx, esi
call eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
lea edi, [esp + 0x5c]
call fcn.0040c7a0
test al, al
jne 0x41ed5e
mov edx, 0x4cb7f8
lea eax, [esp + 0x9c]
call fcn.004016b0
mov byte [esp + 0x170], 3
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x9c]
push ecx
add edi, 0x30
call ebx
mov edx, dword [edi]
push eax
mov ecx, esi
call edx
mov byte [esp + 0x170], 1
cmp dword [esp + 0xb4], 8
mov byte [esp + 0x3b], al
jb 0x41ecf0
mov eax, dword [esp + 0xa0]
push eax
call fcn.004abbe4
add esp, 4
cmp byte [esp + 0x3b], 0
jne 0x41efe6
mov edx, 0x4cb7f8
lea eax, [esp + 0x10c]
call fcn.004016b0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x170], 4
mov esi, dword [edi]
add esi, 0x34
call ebx
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x110]
push ecx
push 0x10000002
mov ecx, edi
call edx
lea esi, [esp + 0x10c]
call fcn.00449530
lea esi, [esp + 0x144]
call fcn.00449530
lea esi, [esp + 0x128]
call fcn.00449530
xor al, al
jmp 0x41f8ec
mov ecx, dword [ebx + 0x70]
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call eax
mov byte [esp + 0x170], 5
mov ecx, dword [esp + 0x14]
xor edi, edi
cmp ecx, edi
je 0x41eedd
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [esi + 0xbc]
cmp eax, edi
je 0x41eedd
mov ecx, dword [esi + 0xc0]
sub ecx, eax
sar ecx, 2
je 0x41eedd
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov byte [esp + 0x170], 6
mov dword [esp + 0x20], edi
jmp 0x41edd0
mov ecx, dword [esi + 0xbc]
test ecx, ecx
lea edi, [esi + 0xb8]
je 0x41eef3
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x41eef3
test ecx, ecx
je 0x41ee08
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x41ee0d
call fcn.004ac22f
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x20]
mov eax, dword [edx + eax*4]
lea edi, [esp + 0x5c]
call fcn.0040c7a0
test al, al
je 0x41ee3b
mov ecx, edi
push ecx
lea esi, [esp + 0x4c]
call fcn.00422850
add dword [esp + 0x20], 1
mov esi, dword [esp + 0x1c]
jmp 0x41edd0
mov edx, 0x4cb7f8
lea eax, [esp + 0xf0]
call fcn.004016b0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x170], 7
mov esi, dword [edi]
lea edx, [esp + 0xf0]
push edx
add esi, 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
lea esi, [esp + 0xf0]
mov bl, al
mov byte [esp + 0x170], 6
call fcn.00449530
test bl, bl
jne 0x41efcc
mov edx, 0x4cb7f8
lea eax, [esp + 0xb8]
call fcn.004016b0
mov byte [esp + 0x170], 8
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xbc]
push ecx
push 0x10000002
mov ecx, edi
call edx
lea esi, [esp + 0xb8]
call fcn.00449530
lea esi, [esp + 0x48]
call fcn.0044a310
lea eax, [esp + 0x14]
mov byte [esp + 0x170], 1
call fcn.0040f030
jmp 0x41ed3f
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
xor edi, edi
or edx, dword [ebx + 0x6c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
je 0x41ef68
nop
push edi
lea eax, [esp + 0x4c]
call fcn.004227f0
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 4]
jb 0x41ef64
ja 0x41ef2d
mov edx, dword [esp + 0x2c]
cmp edx, dword [eax]
jb 0x41ef64
push edi
lea eax, [esp + 0x4c]
call fcn.004227f0
mov ecx, dword [eax]
sub dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
sbb dword [esp + 0x30], edx
add edi, 1
test ecx, ecx
je 0x41ef64
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 3
cmp edi, eax
jae 0x41ef64
mov eax, dword [ebx + 0x68]
or eax, dword [ebx + 0x6c]
jne 0x41ef10
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x128]
push ecx
call fcn.0040b850
add esp, 4
test al, al
je 0x41f028
lea edi, [esp + 0x128]
call fcn.0040bad0
test al, al
jne 0x41f028
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edi, eax
lea eax, [esp + 0x128]
push eax
push edi
mov ecx, esi
call edx
test al, al
je 0x41f003
mov edx, dword [ebx + 0x84]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
mov edx, dword [ebx + 0x80]
push edx
push ebx
call eax
lea esi, [esp + 0x48]
call fcn.0044a310
lea eax, [esp + 0x14]
mov byte [esp + 0x170], 1
call fcn.0040f030
lea esi, [esp + 0x144]
call fcn.00449530
lea esi, [esp + 0x128]
call fcn.00449530
jmp 0x41f8ea
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push edi
lea eax, [esp + 0x12c]
push eax
push 0x10000004
mov ecx, esi
call edx
test al, al
lea esi, [esp + 0x48]
je 0x41eed8
jmp 0x41efd0
mov dword [esp + 0x10], 0xffffffff
mov byte [esp + 0x170], 9
cmp dword [ebx + 0x98], 1
jne 0x41f0e9
mov eax, dword [ebx + 0x60]
or eax, 0x8000000
push eax
push 2
push 1
push 0x40000000
lea edi, [esp + 0x138]
lea esi, [esp + 0x20]
call fcn.0040c6c0
test al, al
jne 0x41f0e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edi, eax
lea eax, [esp + 0x128]
push eax
push edi
mov ecx, esi
call edx
test al, al
je 0x41f0b3
mov ecx, dword [ebx + 0x84]
mov edx, dword [ebx + 0x80]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
push ecx
push edx
push ebx
mov ecx, esi
call eax
lea esi, [esp + 0x10]
call fcn.0040c6a0
jmp 0x41efcc
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push edi
lea eax, [esp + 0x12c]
push eax
push 0x10000001
mov ecx, esi
call edx
test al, al
lea esi, [esp + 0x10]
je 0x41f2a2
call fcn.0040c6a0
jmp 0x41efcc
lea eax, [esp + 0x10]
call fcn.0040c850
mov esi, dword [ebx + 0x68]
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x8c], esi
mov esi, dword [ebx + 0x6c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x90], esi
jb 0x41f526
ja 0x41f130
test ecx, ecx
jbe 0x41f526
lea ecx, [ecx]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
add eax, 0xb8
call fcn.004225d0
mov eax, dword [eax]
xor ecx, ecx
push 1
push ecx
push ecx
lea esi, [esp + 0x78]
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
call fcn.0040c7f0
test al, al
je 0x41f29e
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x2c]
jne 0x41f17c
mov ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x30]
je 0x41f1b9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
mov eax, dword [esp + 0x64]
lea esi, [esp + 0x78]
call fcn.0040c7f0
test al, al
je 0x41f29e
mov ecx, dword [esp + 0x6c]
cmp ecx, dword [esp + 0x2c]
jne 0x41f29e
mov edx, dword [esp + 0x70]
cmp edx, dword [esp + 0x30]
jne 0x41f29e
push edi
lea eax, [esp + 0x4c]
call fcn.004227f0
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, esi
add edx, dword [esp + 0x2c]
adc ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 4]
jb 0x41f203
ja 0x41f1e0
cmp edx, dword [eax]
jbe 0x41f203
push edi
lea eax, [esp + 0x4c]
call fcn.004227f0
mov ecx, dword [eax]
sub ecx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
sbb eax, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
jmp 0x41f209
mov eax, dword [esp + 0x60]
mov ecx, esi
add dword [esp + 0x3c], ecx
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x94], ecx
adc dword [esp + 0x40], eax
sub esi, ecx
sbb dword [esp + 0x60], eax
add edi, 1
cmp edx, 1
mov dword [esp + 0x5c], esi
mov dword [esp + 0x20], edi
jne 0x41f2ac
mov esi, dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x20]
mov dword [edx + 4], esi
mov edx, dword [esp + 0x20]
test edx, edx
mov dword [esp + 0x6c], esp
je 0x41f25e
add edx, 4
mov esi, 1
lock xadd dword [edx], esi
mov edx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
push ecx
push ebx
lea edx, [esp + 0x14c]
push edx
push eax
call fcn.00421810
test al, al
jne 0x41f504
lea esi, [esp + 0x10]
call fcn.0040c780
lea esi, [esp + 0x10]
call fcn.0040c6a0
jmp 0x41eed4
cmp edx, 2
jne 0x41f504
mov edi, dword [ebx + 0x68]
lea esi, [ebx + 0x88]
mov dword [esp + 0x68], 0
call fcn.00401c50
cmp dword [ebx + 0x70], 0
jne 0x41f311
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x90]
push ecx
mov ecx, dword [edx + 0xb4]
lea esi, [esp + 0x6c]
call fcn.0040c710
test al, al
je 0x41f295
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
ja 0x41f306
mov eax, ecx
mov dword [ebx + 0x94], eax
jmp 0x41f504
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x68]
mov edi, dword [esp + 0x94]
add eax, ecx
mov dword [esp + 0x64], eax
xor eax, eax
lea esi, [esp + 0x78]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.00401c50
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov byte [esp + 0x170], 0xa
mov ecx, dword [ecx + 0xb4]
push eax
mov eax, dword [esp + 0x84]
lea esi, [esp + 0x6c]
call fcn.0040c710
test al, al
je 0x41f578
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x68]
cmp edi, eax
mov dword [esp + 0x84], eax
ja 0x41f397
mov dword [esp + 0x84], edi
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
ja 0x41f3aa
mov eax, ecx
xor esi, esi
cmp edi, esi
mov dword [ebx + 0x94], eax
mov dword [esp + 0x88], esi
jbe 0x41f470
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x88]
push edi
add eax, esi
push eax
call edx
test al, al
je 0x41f578
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x1c]
add esi, eax
push 0
sub edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
push ebx
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jbe 0x41f468
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x58]
push edx
call eax
test eax, eax
je 0x41f45d
mov ecx, dword [esp + 0x58]
test ecx, ecx
jbe 0x41f45d
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x28]
cmp edx, ecx
jb 0x41f578
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004af7b0
mov ecx, dword [esp + 0x64]
add esp, 0xc
add dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test edi, edi
ja 0x41f3c1
cmp dword [ebx + 0x70], 0
je 0x41f4f3
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x64]
mov edi, edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jbe 0x41f4d9
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x28]
push eax
call edx
test eax, eax
je 0x41f4d9
mov ecx, dword [esp + 0x28]
test ecx, ecx
jbe 0x41f4d9
mov edx, edi
sub edx, esi
cmp edx, ecx
jb 0x41f578
push ecx
push eax
push esi
call fcn.004af7b0
add esp, 0xc
add esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
ja 0x41f480
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x170], 9
call fcn.00401bb0
mov eax, dword [esp + 0x40]
cmp eax, dword [ebx + 0x84]
jb 0x41f130
ja 0x41f526
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [ebx + 0x80]
jb 0x41f130
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x54]
push edx
mov edx, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x4c]
push ecx
mov ecx, dword [ebx + 0x48]
push edx
push eax
push ecx
lea eax, [esp + 0x28]
call fcn.0040c870
lea esi, [esp + 0x10]
call fcn.0040c780
call fcn.0040c6a0
lea esi, [esp + 0x48]
call fcn.0044a310
lea eax, [esp + 0x14]
mov byte [esp + 0x170], 1
call fcn.0040f030
mov edi, dword [esp + 0x1c]
jmp 0x41f861
lea esi, [esp + 0x10]
call fcn.0040c780
lea ecx, [esp + 0x78]
call fcn.00401bb0
call fcn.0040c6a0
jmp 0x41eed4
lea edx, [esp + 0x128]
push edx
call fcn.0040b850
add esp, 4
test al, al
je 0x41f604
mov edi, 8
cmp dword [esp + 0x15c], edi
jb 0x41f5c6
mov eax, dword [esp + 0x148]
push eax
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x140], edi
mov dword [esp + 0x15c], 7
mov dword [esp + 0x158], esi
mov word [esp + 0x148], si
jb 0x41ed57
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.004abbe4
add esp, 4
xor al, al
jmp 0x41f8ec
lea edx, [esp + 0x128]
push edx
call fcn.0040b780
add esp, 4
test al, al
jne 0x41f69c
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call edx
test al, al
jne 0x41f69c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x128]
push ecx
push eax
mov ecx, edi
call edx
test al, al
je 0x41ed3f
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push esi
push esi
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ebx
mov ecx, edi
call edx
mov eax, dword [ebx + 0x80]
add dword [edi + 0x120], eax
mov ecx, dword [ebx + 0x84]
adc dword [edi + 0x124], ecx
mov edi, dword [edi + 0x114]
cmp edi, esi
je 0x41efe6
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
jmp 0x41efe6
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
push 0
push 0
push ebx
mov ecx, edi
call eax
mov eax, ebx
xor esi, esi
call fcn.00414470
test eax, eax
jbe 0x41f78e
mov cl, byte [edi + 0x110]
test cl, cl
jne 0x41f78e
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41f6dc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x41f6e1
call fcn.004ac22f
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*8]
lea eax, [edx + esi*8]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
je 0x41f705
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov byte [esp + 0x170], 0xb
cmp dword [ecx + 0x70], 3
jne 0x41f751
cmp dword [ecx + 0x80], 0
jne 0x41f725
cmp dword [ecx + 0x84], 0
je 0x41f76b
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x128]
push edx
push ecx
mov ecx, edi
call eax
test al, al
jne 0x41f76b
lea eax, [esp + 0x3c]
mov byte [esp + 0x170], 1
call fcn.0040f030
jmp 0x41ed3f
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x128]
push eax
push ecx
mov ecx, edi
call edx
test al, al
je 0x41f7f3
lea eax, [esp + 0x3c]
mov byte [esp + 0x170], 1
call fcn.0040f030
mov eax, ebx
add esi, 1
call fcn.00414470
cmp esi, eax
jb 0x41f6bb
mov cl, byte [edi + 0x110]
test cl, cl
je 0x41f811
cmp dword [esp + 0x15c], 8
jb 0x41f7b2
mov edx, dword [esp + 0x148]
push edx
call fcn.004abbe4
add esp, 4
xor eax, eax
cmp dword [esp + 0x140], 8
mov dword [esp + 0x15c], 7
mov dword [esp + 0x158], eax
mov word [esp + 0x148], ax
jb 0x41ed57
mov eax, dword [esp + 0x12c]
push eax
call fcn.004abbe4
add esp, 4
xor al, al
jmp 0x41f8ec
mov al, byte [edi + 0x110]
test al, al
lea eax, [esp + 0x3c]
mov byte [esp + 0x170], 1
call fcn.0040f030
jmp 0x41ed3f
cmp dword [esp + 0x140], 8
mov ecx, dword [ebx + 0x60]
mov eax, dword [esp + 0x12c]
jae 0x41f82c
lea eax, [esp + 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41f840
call esi
lea ecx, [ebx + 0x58]
push ecx
lea edx, [ebx + 0x50]
push edx
lea eax, [ebx + 0x48]
push eax
lea eax, [esp + 0x134]
call fcn.0040b3d0
add esp, 0xc
test al, al
jne 0x41f861
call esi
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x80]
add dword [edi + 0x120], ecx
mov edx, dword [ebx + 0x84]
adc dword [edi + 0x124], edx
mov edi, dword [edi + 0x114]
xor esi, esi
cmp edi, esi
je 0x41f899
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, edi
call edx
mov edi, 8
cmp dword [esp + 0x15c], edi
jb 0x41f8b7
mov eax, dword [esp + 0x148]
push eax
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x140], edi
mov word [esp + 0x148], si
mov dword [esp + 0x158], esi
mov dword [esp + 0x15c], 7
jb 0x41f8ea
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.004abbe4
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.004abc64
mov esp, ebp
pop ebp
ret 8