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

Disassembly:
push 0xffffffffffffffff
push 0x5b7e58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e298]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
push 0
sar eax, 3
push eax
lea ecx, [esp + 0x2c]
call fcn.004b60a0
lea esi, [edi + 0x1c]
push esi
lea ecx, [edi + 4]
mov dword [esp + 0x54], 0
call fcn.00535430
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x24]
push edx
push esi
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
test ecx, ecx
ja 0x4b61a4
call fcn.00589a8c
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov dword [edi + 0x54], eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ecx, 1
ja 0x4b61bf
call fcn.00589a8c
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 4]
mov dword [edi + 0x58], eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
test ecx, ecx
ja 0x4b61da
call fcn.00589a8c
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ebx, dword [edx]
sub eax, edx
sar eax, 2
cmp eax, 1
ja 0x4b61f1
call fcn.00589a8c
mov eax, ebx
sub eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0xc]
imul eax, dword [edi + 0x74]
cdq
idiv dword [edi + 0x64]
mov ebp, eax
mov eax, dword [ecx + 4]
sub eax, dword [edi + 0x60]
add ebp, dword [edi + 0x6c]
imul eax, dword [edi + 0x78]
cdq
idiv dword [edi + 0x68]
mov edx, dword [esi + 0x10]
sub edx, ecx
sar edx, 2
mov ebx, eax
add ebx, dword [edi + 0x70]
test edx, edx
ja 0x4b622a
call fcn.00589a8c
mov eax, dword [esi + 0xc]
mov dword [eax], ebp
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ecx, 1
ja 0x4b6242
call fcn.00589a8c
mov edx, dword [esi + 0xc]
xor ebp, ebp
mov dword [edx + 4], ebx
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x2c], ebp
jbe 0x4b6328
jmp 0x4b6260
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004b5c60
mov esi, eax
cmp dword [esi], ebp
je 0x4b627e
cmp dword [esi + 4], ebp
jne 0x4b6283
call fcn.00589a8c
mov eax, dword [esi]
mov ebx, dword [esi + 8]
cmp eax, ebp
je 0x4b6290
mov eax, dword [eax]
jmp 0x4b6292
xor eax, eax
mov ebp, dword [eax + 0x18]
cmp ebp, dword [eax + 0x1c]
jbe 0x4b629f
call fcn.00589a8c
mov edx, dword [esi + 4]
mov eax, dword [esi]
sub edx, ebp
sar edx, 2
shl edx, 5
add ebx, edx
test eax, eax
je 0x4b62b6
mov eax, dword [eax]
jmp 0x4b62b8
xor eax, eax
cmp ebx, dword [eax + 8]
jb 0x4b62c2
call fcn.00589a8c
mov ecx, dword [esi + 8]
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 4]
test dword [ecx], eax
je 0x4b62e2
mov ecx, edi
call fcn.004b5af0
test al, al
je 0x4b62e2
mov bl, 1
jmp 0x4b62e4
xor bl, bl
mov edx, dword [edi + 0x44]
sub edx, dword [edi + 0x40]
mov esi, dword [esp + 0x14]
sar edx, 3
cmp esi, edx
jb 0x4b62fa
call fcn.00589a8c
mov eax, dword [edi + 0x40]
lea eax, [eax + esi*8]
test bl, bl
je 0x4b6308
inc dword [eax]
jmp 0x4b6317
cmp dword [eax], 0
mov dword [eax], 0
setne cl
mov byte [eax + 4], cl
inc esi
xor ebp, ebp
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x2c]
jb 0x4b6260
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
cmp eax, ebp
je 0x4b633d
push eax
call fcn.0058984a
add esp, 4
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call fcn.0058984a
mov eax, dword [esp + 0x28]
push eax
call fcn.0058984a
add esp, 8
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret