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

Disassembly:
push 0xffffffffffffffff
push 0x588df8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov dword [esp + 0x98], 1
mov eax, dword [esp + 0xa0]
xor ebp, ebp
cmp dword [eax + 8], 0xffffffff
jne 0x4133c0
cmp dword [eax + 0x1034], ebp
je 0x4138c3
cmp dword [esp + 0xa4], ebp
je 0x4138c3
lea eax, [esp + 0x78]
push eax
call fcn.00462370
mov byte [esp + 0x98], 2
mov ecx, dword [esp + 0xa0]
push ecx
lea edi, [esp + 0x7c]
call fcn.00413b80
test al, al
je 0x4138b1
lea edx, [esp + 0x60]
push edx
call fcn.00462370
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0xa0]
call fcn.00413ca0
mov eax, dword [esp + 0xa0]
push eax
lea edi, [esp + 0x64]
call fcn.00413b80
test al, al
je 0x41389f
mov eax, dword [esp + 0xa0]
call fcn.00413ca0
lea ecx, [esp + 0x48]
push ecx
call fcn.00462370
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0x20]
push edx
push 0
push eax
lea edi, [esp + 0x54]
call fcn.00413a20
test al, al
je 0x41388d
lea ecx, [esp + 0x30]
push ecx
mov ebp, 1
call fcn.00462370
mov byte [esp + 0x98], 5
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0x18]
push edx
push 0x5d54bc
push eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x24], 0
call fcn.00413a20
test al, al
je 0x41360c
nop
mov esi, dword [esp + 0x40]
sub esi, dword [esp + 0x3c]
jne 0x4134bf
call fcn.004a35f3
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
call fcn.00414330
mov byte [esp + 0x98], 6
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x413725
lea eax, [esp + 0x24]
push eax
call fcn.00413940
mov byte [esp + 0x98], 7
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.00408930
mov byte [esp + 0x98], 8
lea ebx, [esp + 0x24]
call fcn.00406760
mov byte [esp + 0x98], 7
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
call fcn.00406560
mov edi, eax
call fcn.00406480
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
lea edx, [esi + 1]
push ecx
call fcn.00414380
mov byte [esp + 0x98], 9
lea ebx, [esp + 0x28]
call fcn.00406760
mov byte [esp + 0x98], 7
lea edx, [esp + 0x20]
push edx
call fcn.00403090
call fcn.00406560
mov edi, eax
call fcn.00406480
lea eax, [esp + 0x14]
lea ebx, [esp + 0x2c]
call fcn.00406760
mov ebx, dword [esp + 0xa4]
add ebx, 0x20
lea eax, [esp + 0x24]
call fcn.004143f0
mov byte [esp + 0x98], 6
lea eax, [esp + 0x24]
push eax
call fcn.004139b0
mov bl, 5
mov byte [esp + 0x98], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.00403090
mov byte [esp + 0x98], 4
lea edx, [esp + 0x30]
push edx
call fcn.004264d0
lea eax, [esp + 0x30]
push eax
call fcn.00462370
mov byte [esp + 0x98], bl
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x18]
push ecx
push 0x5d54bc
push edx
lea edi, [esp + 0x3c]
mov dword [esp + 0x24], 0
call fcn.00413a20
test al, al
jne 0x4134b0
mov byte [esp + 0x98], 4
lea edx, [esp + 0x30]
push edx
call fcn.004264d0
mov esi, dword [esp + 0x88]
sub esi, dword [esp + 0x84]
jne 0x413633
call fcn.004a35f3
mov ebx, dword [esp + 0x84]
lea eax, [esp + 0x20]
push eax
call fcn.00414330
mov byte [esp + 0x98], 0xa
mov ebx, dword [esp + 0xa4]
add ebx, 0x14
call fcn.00406760
mov byte [esp + 0x98], 4
lea ecx, [esp + 0x20]
push ecx
call fcn.00403090
mov esi, dword [esp + 0x70]
sub esi, dword [esp + 0x6c]
jne 0x41367c
call fcn.004a35f3
mov ebx, dword [esp + 0x6c]
lea edx, [esp + 0x20]
push edx
call fcn.00414330
mov byte [esp + 0x98], 0xb
mov ebx, dword [esp + 0xa4]
add ebx, 0x18
call fcn.00406760
mov byte [esp + 0x98], 4
lea eax, [esp + 0x20]
push eax
call fcn.00403090
mov esi, dword [esp + 0x58]
sub esi, dword [esp + 0x54]
jne 0x4136c2
call fcn.004a35f3
mov ebx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
push ecx
call fcn.00414330
mov byte [esp + 0x98], 0xc
mov ebx, dword [esp + 0xa4]
add ebx, 0x1c
call fcn.00406760
mov byte [esp + 0x98], 4
lea edx, [esp + 0x20]
push edx
call fcn.00403090
mov eax, dword [esp + 0xa4]
add eax, 0x14
push eax
mov ecx, 0x5d54c0
call fcn.00408c20
test eax, eax
jne 0x413749
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 8], 2
jmp 0x41388d
mov byte [esp + 0x98], 5
lea eax, [esp + 0x14]
push eax
call fcn.00403090
mov byte [esp + 0x98], 4
lea ecx, [esp + 0x30]
push ecx
jmp 0x413619
mov edx, dword [esp + 0xa4]
add edx, 0x14
push edx
mov ecx, 0x5d54c4
call fcn.00408c20
test eax, eax
jne 0x413775
mov eax, dword [esp + 0xa4]
mov dword [eax + 8], 3
jmp 0x41388d
mov ecx, dword [esp + 0xa4]
add ecx, 0x14
push ecx
mov ecx, 0x5d54cc
call fcn.00408c20
test eax, eax
jne 0x41388d
mov edx, dword [esp + 0xa4]
mov dword [edx + 8], 1
mov esi, dword [esp + 0xa4]
mov eax, dword [esi + 0x18]
add esi, 0x18
cmp dword [eax - 0xc], 0
jle 0x41388d
push 0x3a
push eax
call fcn.004a577d
add esp, 8
test eax, eax
je 0x41388d
sub eax, dword [esi]
mov esi, eax
cmp esi, 0xffffffff
je 0x41388d
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x20]
push eax
add edx, 0x18
mov ecx, esi
call fcn.00408930
mov byte [esp + 0x98], 0xd
mov ebx, dword [esp + 0xa4]
add ebx, 0xc
call fcn.00406760
mov byte [esp + 0x98], 4
lea ecx, [esp + 0x20]
push ecx
call fcn.00403090
mov ebx, dword [esp + 0xa4]
add ebx, 0xc
call fcn.00406560
mov edi, eax
call fcn.00406480
mov eax, dword [esp + 0xa4]
mov edx, dword [eax + 0xc]
cmp dword [edx - 0xc], 0
je 0x41388d
lea ecx, [esp + 0x18]
push ecx
add eax, 0x18
lea edx, [esi + 1]
push eax
call fcn.00414380
mov byte [esp + 0x98], 0xe
lea ebx, [esp + 0x18]
call fcn.00406560
mov edi, eax
call fcn.00406480
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xa4]
push edx
call fcn.004a3636
add esp, 4
mov word [esi + 0x10], ax
mov byte [esp + 0x98], 4
mov eax, ebx
push eax
call fcn.00403090
mov byte [esp + 0x98], 3
lea ecx, [esp + 0x48]
push ecx
call fcn.004264d0
mov byte [esp + 0x98], 2
lea edx, [esp + 0x60]
push edx
call fcn.004264d0
mov byte [esp + 0x98], 1
lea eax, [esp + 0x78]
push eax
call fcn.004264d0
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0xa0]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x4138f6
mov esi, eax
add eax, 4
push eax
call edi
test eax, eax
jne 0x4138f6
test esi, esi
je 0x4138f6
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x98], 0xffffffff
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x413924
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x413924
test esi, esi
je 0x413924
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, ebp
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret