Function at 0x489e80
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58d1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5a7a7c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov bl, 3
mov ecx, edi
mov byte [esp + 0x78], bl
call fcn.0047e8c0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.0047ebe0
mov ecx, dword [edi + 0x7c]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub eax, edx
lea esi, [eax - 1]
imul esi, dword [edi + 0x8c]
test eax, eax
jle 0x489f19
mov ecx, dword [ecx + edx*4 + 0x10]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
jmp 0x489f1b
xor eax, eax
mov ecx, dword [edi + 0x3c]
sub ecx, dword [edi + 0x34]
dec eax
imul eax, dword [edi + 0x88]
sub ecx, eax
inc ecx
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
lea ecx, [edi + 0x80]
call fcn.00485900
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x80], 4
call fcn.00420050
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x84], 5
call fcn.00420050
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov byte [esp + 0x84], bl
call fcn.00488ee0
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x38]
mov bl, 6
sub ecx, esi
inc ecx
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x3c], esp
push edx
lea ecx, [edi + 0x84]
mov byte [esp + 0x7c], bl
call fcn.00485900
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x80], 7
call fcn.00420050
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x84], 8
call fcn.00420050
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0x84], bl
call fcn.00488ee0
mov eax, dword [edi + 0x7c]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
mov ecx, dword [edi + 0x38]
xor esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
test edx, edx
jle 0x48a15f
test esi, esi
jle 0x48a027
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + esi*4]
mov eax, dword [edx + eax - 4]
add eax, dword [edi + 0x8c]
add dword [esp + 0x14], eax
mov ebp, dword [edi + 0x34]
mov ecx, edi
xor ebx, ebx
call fcn.00439560
test eax, eax
jle 0x48a149
jmp 0x48a040
mov eax, dword [esp + 0x20]
test ebx, ebx
jle 0x48a05a
mov ecx, dword [eax + 0xc]
lea edx, [ecx + ebx*4]
mov ecx, dword [edx + eax - 4]
add ecx, dword [edi + 0x88]
add ebp, ecx
mov ecx, dword [edi + 0x7c]
mov edx, dword [ecx + 8]
add edx, esi
lea ecx, [ecx + edx*4 + 0x10]
mov edx, dword [ecx]
mov esi, dword [edx + 8]
add esi, ebx
cmp dword [edx + esi*4 + 0x10], 0
je 0x48a135
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x18]
lea edx, [edx + ebx*4]
mov eax, dword [edx + eax]
lea edx, [eax + ebp - 1]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0xc]
lea edx, [edx + esi*4]
mov eax, dword [edx + eax]
mov edx, dword [esp + 0x14]
lea edx, [eax + edx - 1]
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
add ecx, ebx
mov esi, dword [eax + ecx*4 + 0x10]
cmp dword [esi + 0x44], ebp
jne 0x48a0c9
mov eax, dword [esi + 0x4c]
cmp eax, dword [esp + 0x5c]
jne 0x48a0c9
mov ecx, dword [esi + 0x48]
cmp ecx, dword [esp + 0x14]
jne 0x48a0c9
cmp dword [esi + 0x50], edx
je 0x48a135
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x44], ebp
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x50], edx
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
sub edx, dword [esi + 0x5c]
sub eax, dword [esi + 0x60]
add ecx, dword [esi + 0x44]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x48]
add edx, dword [esi + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], edx
call dword [0x5a794c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x50]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edx
mov ecx, edi
inc ebx
call fcn.00439560
mov esi, dword [esp + 0x18]
cmp ebx, eax
jl 0x48a040
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
inc esi
mov dword [esp + 0x18], esi
cmp esi, ecx
jl 0x48a00b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov esi, dword [0x5a7a74]
test eax, eax
je 0x48a186
cmp eax, 0xffffffff
je 0x48a190
or edx, 0xffffffff
lock xadd dword [ecx], edx
setne al
test al, al
jne 0x48a190
mov ecx, dword [esp + 0x1c]
push 4
push 4
push ecx
call esi
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x48a1b1
cmp ecx, 0xffffffff
je 0x48a1bb
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x48a1bb
mov eax, dword [esp + 0x20]
push 4
push 4
push eax
call esi
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x48a1da
cmp ecx, 0xffffffff
je 0x48a1e4
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
setne cl
test cl, cl
jne 0x48a1e4
push 4
push 4
push eax
call esi
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
test ecx, ecx
je 0x48a203
cmp ecx, 0xffffffff
je 0x48a20d
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
setne cl
test cl, cl
jne 0x48a20d
push 4
push 4
push eax
call esi
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
test ecx, ecx
je 0x48a22c
cmp ecx, 0xffffffff
je 0x48a236
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
setne cl
test cl, cl
jne 0x48a236
push 4
push 4
push eax
call esi
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
test ecx, ecx
je 0x48a255
cmp ecx, 0xffffffff
je 0x48a25f
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
setne cl
test cl, cl
jne 0x48a25f
push 4
push 4
push eax
call esi
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret