Function at 0x478a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d5528
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x40]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.0043aae0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
lea ebx, [esp + 0x28]
call fcn.00479e40
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004082a0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x478b78
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x478b53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
jle 0x478b2b
mov ecx, dword [esi + 8]
xor edx, edx
mov eax, ebp
div ecx
mov eax, dword [esi]
mov ebx, edx
test eax, eax
je 0x478ba9
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x478bba
cmp dword [eax + 0xc], ebp
jne 0x478ba0
cmp dword [eax], ebp
je 0x478bc1
mov eax, dword [eax + 8]
test eax, eax
jne 0x478b97
jmp 0x478bba
push 1
push ecx
push esi
call fcn.0043af50
test al, al
je 0x478cc6
push ebp
push ebp
call fcn.0043b190
mov esi, dword [esp + 0x14]
mov edi, dword [eax + 4]
lea ebp, [eax + 4]
add esi, 0xfffffff0
sub edi, 0x10
cmp esi, edi
je 0x478c20
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x478c11
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x478c11
mov eax, esi
call fcn.00408230
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x478c05
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x478c20
mov eax, dword [esp + 0x14]
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00405e30
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x38]
inc dword [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ebx, [esp + 0x28]
call fcn.00479e40
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, esi
je 0x478c8e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x478c81
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x478c81
call fcn.00408230
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x478c78
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x478c8e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00405e30
mov byte [esp + 0x30], 0
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 0x478cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x478b70
jmp 0x478b2b
push 0x8007000e
call fcn.00405ef0
int3