Function at 0x412510
Capabilities:
Access peb ldr_data
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x459ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x88], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb4]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401cc0
mov byte [esp + 0xa4], 1
mov byte [esp + 0xa4], bl
mov ecx, esi
call fcn.004111d0
lea edi, [esi + 0xd8]
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x41259f
call fcn.004408d8
mov eax, dword [edi]
mov ebp, esi
mov esi, dword [edi + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
cmp dword [edi + 0xc], esi
jbe 0x4125bc
call fcn.004408d8
mov eax, dword [esp + 0x18]
mov ecx, dword [edi]
mov dword [esp + 0x20], ecx
cmp eax, ebx
je 0x4125cc
cmp eax, dword [esp + 0x20]
je 0x4125d5
call fcn.004408d8
mov eax, dword [esp + 0x18]
cmp ebp, esi
je 0x412736
cmp eax, ebx
jne 0x41272b
call fcn.004408d8
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4125f6
call fcn.004408d8
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.00401cc0
mov byte [esp + 0x88], 2
push 0x45ecf4
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00409410
mov byte [esp + 0x94], 3
lea ecx, [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.004094f0
add esp, 0x18
mov byte [esp + 0x88], 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.00401cc0
mov byte [esp + 0x88], 3
mov esi, 0x10
cmp dword [esp + 0x40], esi
jb 0x412688
mov eax, dword [esp + 0x2c]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x88], 2
cmp dword [esp + 0x5c], esi
jb 0x4126b3
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jae 0x4126d1
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x88], bl
cmp dword [esp + 0x78], esi
jb 0x4126f2
mov edx, dword [esp + 0x64]
push edx
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp eax, ebx
jne 0x412732
call fcn.004408d8
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x41271b
call fcn.004408d8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add ebp, 0x1c
jmp 0x4125c2
mov eax, dword [eax]
jmp 0x4125ec
mov eax, dword [eax]
jmp 0x412711
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
cmp dword [edi + 0xc], eax
jbe 0x412747
call fcn.004408d8
mov esi, dword [edi + 0xc]
mov ebp, dword [edi]
cmp esi, dword [edi + 0x10]
jbe 0x412756
call fcn.004408d8
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push ecx
push ebp
push esi
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.0040f840
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0xa8], 0x10
jb 0x412791
mov eax, dword [esp + 0x94]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0044014d
add esp, 0x78
ret 0x1c