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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c4df
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xb8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
je 0x4131bc
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 4
call fcn.004aaa2e
add esp, 4
cmp eax, ebx
je 0x4131d8
mov edi, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x18], edi
jmp 0x4131de
mov dword [esp + 0x18], ebx
mov edi, ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x328], ebx
mov eax, 7
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
mov byte [esp + 0x328], 1
push 3
push 0x547fd4
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
call fcn.00402af0
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x40]
push esi
push eax
mov byte [esp + 0x334], 2
call fcn.00408d00
add esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, eax
mov byte [esp + 0x328], 3
call fcn.00406330
test al, al
sete byte [esp + 0x16]
cmp dword [esp + 0x54], 8
jb 0x413294
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004aaa59
add esp, 4
mov esi, 7
mov byte [esp + 0x328], 1
cmp dword [esp + 0xc0], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x4132c8
mov edx, dword [esp + 0xac]
push edx
call fcn.004aaa59
add esp, 4
cmp byte [esp + 0x16], bl
je 0x413330
cmp dword [esp + 0x9c], 8
jb 0x4132e8
mov eax, dword [esp + 0x88]
push eax
call fcn.004aaa59
add esp, 4
cmp edi, ebx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
je 0x413323
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41331a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41331a
mov dword [edi], 0xffffffff
push edi
call fcn.004aaa59
add esp, 4
xor al, al
jmp 0x413848
mov edx, dword [esp + 0x7c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x4133ae
mov ecx, dword [esp + 0x98]
cmp ecx, ebx
je 0x4133ae
mov eax, dword [esp + 0x88]
mov esi, 8
cmp dword [esp + 0x9c], esi
jae 0x413366
lea eax, [esp + 0x88]
cmp word [eax], 0x2e
jne 0x4133ae
cmp ecx, 1
je 0x4136d4
jae 0x413387
call fcn.004ec14b
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x9c], esi
mov eax, dword [esp + 0x88]
jae 0x41339e
lea eax, [esp + 0x88]
cmp word [eax + 2], 0x2e
jne 0x4133ae
cmp ecx, 2
je 0x4136d4
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
push 0xa0
je 0x413572
call fcn.004aaa2e
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebx
mov byte [esp + 0x328], 4
je 0x4133e9
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call fcn.0040fb30
mov esi, eax
jmp 0x4133eb
xor esi, esi
mov byte [esp + 0x328], 1
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.004168e0
push esi
push esi
call fcn.0040fab0
add esp, 8
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
lea edi, [esi + 0x10]
push edx
mov ecx, edi
mov byte [esp + 0x334], 5
call fcn.00403310
mov eax, dword [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00408d00
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x334], 6
call fcn.00403310
mov byte [esp + 0x328], 5
cmp dword [esp + 0x54], 8
jb 0x41346b
mov edx, dword [esp + 0x40]
push edx
call fcn.004aaa59
add esp, 4
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x60], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x48], ecx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x4c], edx
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x50], eax
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x54], ecx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x58], edx
mov eax, dword [esp + 0x78]
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 0xb0]
cmp ecx, ebx
mov byte [esp + 0x17], bl
je 0x4134c1
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x17]
push eax
push esi
call edx
cmp byte [esp + 0x17], bl
jne 0x413527
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x84]
push eax
push ecx
lea edx, [esp + 0xb0]
push edx
call fcn.00408d00
add esp, 0xc
mov byte [esp + 0x328], 7
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0xa8]
push ecx
push esi
mov ecx, edi
call edx
test al, al
je 0x41370b
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
call fcn.00414880
cmp dword [esp + 0xc0], 8
jb 0x413527
mov eax, dword [esp + 0xac]
push eax
call fcn.004aaa59
add esp, 4
mov byte [esp + 0x328], 1
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x4136d0
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4136d0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4136d0
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x4136d0
call fcn.004aaa2e
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebx
mov byte [esp + 0x328], 8
je 0x41359a
mov ecx, dword [esp + 0x1c]
push 1
push ecx
call fcn.0040fb30
mov esi, eax
jmp 0x41359c
xor esi, esi
mov byte [esp + 0x328], 1
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], esi
call fcn.004168e0
push esi
push esi
call fcn.0040fab0
add esp, 8
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
lea edi, [esi + 0x10]
push edx
mov ecx, edi
mov byte [esp + 0x334], 9
call fcn.00403310
mov eax, dword [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00408d00
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x334], 0xa
call fcn.00403310
mov byte [esp + 0x328], 9
cmp dword [esp + 0x54], 8
jb 0x41361c
mov edx, dword [esp + 0x40]
push edx
call fcn.004aaa59
add esp, 4
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x60], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x48], ecx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x4c], edx
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x50], eax
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x54], ecx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x58], edx
mov eax, dword [esp + 0x78]
mov dword [esi + 0x5c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x68], ecx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 0xa8]
mov dword [esi + 0x70], ecx
mov ecx, dword [eax + 0xb0]
cmp ecx, ebx
mov byte [esp + 0x16], bl
je 0x413689
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x16]
push eax
push esi
call edx
cmp byte [esp + 0x16], bl
jne 0x413696
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.00414880
mov byte [esp + 0x328], 1
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x4136d0
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4136d0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4136d0
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov edi, dword [esp + 0x18]
mov ecx, dword [edi]
lea eax, [esp + 0xc4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
cmp al, bl
je 0x4137db
lea esi, [esp + 0x5c]
lea ecx, [esp + 0xc4]
call fcn.00406440
mov edi, dword [esp + 0x18]
jmp 0x413330
cmp dword [esp + 0xc0], 8
jb 0x413725
mov edx, dword [esp + 0xac]
push edx
call fcn.004aaa59
add esp, 4
mov byte [esp + 0x328], 1
mov esi, dword [esp + 0x2c]
cmp esi, ebx
mov edi, 7
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
je 0x41377a
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41377a
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41377a
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x9c], 8
jb 0x413794
mov eax, dword [esp + 0x88]
push eax
call fcn.004aaa59
add esp, 4
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
je 0x413323
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4137ce
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4137ce
mov dword [esi], 0xffffffff
push esi
call fcn.004aaa59
add esp, 4
xor al, al
jmp 0x413848
mov eax, dword [edi]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x4137f5
push eax
call esi
test eax, eax
je 0x4137f5
mov dword [edi], 0xffffffff
cmp dword [esp + 0x9c], 8
jb 0x41380f
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004aaa59
add esp, 4
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41383d
push eax
call esi
test eax, eax
je 0x41383d
mov dword [edi], 0xffffffff
push edi
call fcn.004aaa59
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret 8