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

Disassembly:
push 0xffffffffffffffff
push 0x6afbe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [0x8dc400]
push ebx
push esi
mov esi, ecx
mov ecx, eax
inc eax
test ecx, ecx
mov dword [esp + 0x50], 0x8dc400
mov dword [0x8dc400], eax
je 0x54e1fc
mov eax, 1
jmp 0x54e1fe
xor eax, eax
mov byte [esp + 0x54], al
xor ebx, ebx
test al, al
mov dword [esp + 0x80], ebx
je 0x54e22b
mov eax, dword [0x8dc400]
pop esi
dec eax
pop ebx
mov dword [0x8dc400], eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
push ebp
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
xor edi, edi
inc ecx
cmp eax, edi
mov dword [esp + 0x14], ecx
je 0x54e268
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea eax, [esp + 0x30]
jmp 0x54e275
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x70]
push eax
call fcn.0045f160
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x7c], edx
test eax, eax
je 0x54e28a
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x34], edi
jne 0x54e297
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
jmp 0x54e2ff
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x60]
push eax
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov edi, dword [esi + 0x34]
mov ebp, dword [esp + 0x60]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
idiv edi
mov dword [esi + 0x44], ecx
mov edi, eax
cmp edi, ecx
jge 0x54e2d2
cmp dword [esp + 0x10], ebp
jl 0x54e2ce
inc edi
cmp edi, ecx
jl 0x54e2dc
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
jmp 0x54e2ff
cmp edi, 1
jge 0x54e2e6
mov edi, 1
mov eax, dword [esi + 0x3c]
sub ecx, edi
cmp eax, ecx
jle 0x54e2f4
mov dword [esi + 0x3c], ecx
jmp 0x54e2ff
test eax, eax
jge 0x54e2ff
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x18]
push 1
push eax
mov eax, dword [esi + 0x3c]
mov edx, dword [ecx]
push edi
push eax
push 4
call dword [edx + 0x178]
push edi
push 4
mov ecx, esi
call fcn.0054e690
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x54e33d
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
jmp 0x54e366
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x21c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x40]
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], edx
test ecx, ecx
je 0x54e379
mov ebx, eax
cmp dword [esi + 0x38], edi
jne 0x54e386
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
jmp 0x54e3ea
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x68]
push eax
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov edi, dword [esi + 0x38]
mov ebp, dword [esp + 0x6c]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, ebx
cdq
idiv edi
mov dword [esi + 0x48], ecx
mov edi, eax
cmp edi, ecx
jge 0x54e3bd
cmp ebx, ebp
jl 0x54e3b9
inc edi
cmp edi, ecx
jl 0x54e3c7
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
jmp 0x54e3ea
cmp edi, 1
jge 0x54e3d1
mov edi, 1
mov eax, dword [esi + 0x40]
sub ecx, edi
cmp eax, ecx
jle 0x54e3df
mov dword [esi + 0x40], ecx
jmp 0x54e3ea
test eax, eax
jge 0x54e3ea
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x18]
push 1
push eax
mov eax, dword [esi + 0x40]
mov edx, dword [ecx]
push edi
push eax
push 8
call dword [edx + 0x178]
push edi
push 8
mov ecx, esi
call fcn.0054e690
mov eax, dword [esi + 0x28]
mov edi, dword [esp + 0x10]
test eax, eax
mov ebp, ebx
je 0x54e42c
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x48]
jmp 0x54e455
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x21c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x50]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
test edx, edx
je 0x54e466
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x54e470
mov ebx, eax
cmp dword [esp + 0x10], edi
jne 0x54e47a
cmp ebx, ebp
je 0x54e485
cmp dword [esp + 0x14], 5
jl 0x54e243
mov edx, dword [esi + 0x3c]
mov edi, dword [esp + 0x28]
cmp edi, edx
je 0x54e4d5
mov al, byte [esi + 0x54]
test al, al
mov eax, dword [esi + 0x28]
je 0x54e4bc
test eax, eax
je 0x54e4a3
lea eax, [esi + 0x20]
jmp 0x54e4a5
xor eax, eax
sub edi, edx
mov ecx, dword [esi + 0x1c]
imul edi, dword [esi + 0x34]
mov ebx, dword [ecx]
push eax
push 0
push edi
call dword [ebx + 0x18c]
jmp 0x54e4d5
test eax, eax
je 0x54e4c5
lea eax, [esi + 0x20]
jmp 0x54e4c7
xor eax, eax
mov ecx, dword [esi + 0x1c]
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x118]
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x2c]
cmp edi, edx
je 0x54e525
mov al, byte [esi + 0x55]
test al, al
mov eax, dword [esi + 0x28]
je 0x54e50c
test eax, eax
je 0x54e4f3
lea eax, [esi + 0x20]
jmp 0x54e4f5
xor eax, eax
sub edi, edx
mov ecx, dword [esi + 0x1c]
imul edi, dword [esi + 0x38]
mov ebx, dword [ecx]
push eax
push edi
push 0
call dword [ebx + 0x18c]
jmp 0x54e525
test eax, eax
je 0x54e515
lea eax, [esi + 0x20]
jmp 0x54e517
xor eax, eax
mov ecx, dword [esi + 0x1c]
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x118]
mov eax, dword [0x8dc400]
mov ecx, dword [esp + 0x80]
pop edi
dec eax
pop ebp
pop esi
mov dword [0x8dc400], eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret