Function at 0x4179c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x479371
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c500]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x68], 2
test byte [0x4a4010], 1
mov ebp, 1
jne 0x417a43
or dword [0x4a4010], ebp
call fcn.0043d19f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417a25
push 0x80004005
call fcn.004019f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x47ca70
mov dword [0x4a400c], eax
call fcn.00452e82
add esp, 4
push 0
push 0x484610
mov ecx, 0x4a400c
call fcn.00401830
lea ecx, [esp + 0x48]
call fcn.0043f06a
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x74], 3
call fcn.004182e0
add esp, 0xc
mov byte [esp + 0x68], 4
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x50]
call fcn.0043f0f6
mov esi, eax
mov byte [esp + 0x68], 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 0x417ab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x417dc7
mov edi, dword [esp + 0x7c]
cmp dword [0x4a3f90], ebp
je 0x417dc7
lea ecx, [esp + 0x48]
call fcn.0043ed68
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x4c]
call eax
test eax, eax
je 0x417d8f
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0043f325
mov byte [esp + 0x68], 5
mov edx, dword [esp + 0x18]
push 0x485338
push edx
call fcn.0045366c
add esp, 8
test eax, eax
sete al
test al, al
jne 0x417d6a
mov eax, dword [esp + 0x18]
push 0x4850f0
push eax
call fcn.0045366c
add esp, 8
test eax, eax
sete al
test al, al
jne 0x417d6a
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0043f295
push eax
mov ecx, 0x4a400c
mov byte [esp + 0x6c], 6
call fcn.00418700
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417b83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4a400c]
push ecx
lea edx, [edi + 0x74]
push 0x4850f4
push edx
call fcn.00401ad0
add esp, 0xc
push 0x485108
lea eax, [esp + 0x28]
push 0x4a400c
push eax
call fcn.004183a0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [0x47d3cc]
mov esi, eax
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 0x417bdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x417c85
lea ecx, [esp + 0x2c]
push 0x485134
push ecx
mov ecx, 0x4a400c
mov dword [edi + 0x78], ebp
call fcn.00418480
push 0x485118
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x7c], 7
call fcn.004183a0
add esp, 0x14
push 0x1024
mov byte [esp + 0x6c], 8
mov eax, dword [eax]
push 0x4850d0
push eax
mov ecx, edi
call fcn.00438ed1
cmp eax, 6
mov byte [esp + 0x68], 7
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417c58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 5
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 0x417c7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x417d9c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004182e0
add esp, 0xc
push 0x485140
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x74], 9
call fcn.004183a0
add esp, 0xc
mov byte [esp + 0x68], 0xb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417cd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x78]
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
push eax
call fcn.00418690
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x74], 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov esi, esp
push eax
call fcn.00418690
add eax, 0x10
lea ecx, [esp + 0x44]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x78], 0xb
call fcn.004179c0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 5
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 0x417d6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0
jne 0x417abf
jmp 0x417dc7
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [0x4a3f90], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417dc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
call fcn.0043ec98
mov eax, dword [0x4a400c]
add eax, 0xfffffff0
push eax
call fcn.00418690
mov esi, dword [esp + 0x74]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x68], 2
call fcn.0043f08e
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret