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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bfe98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x525d58]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, eax
inc eax
test ecx, ecx
push edi
mov dword [esp + 0x38], 0x525d58
mov dword [0x525d58], eax
je 0x46cc84
mov al, 1
jmp 0x46cc86
xor al, al
mov byte [esp + 0x3c], al
xor ecx, ecx
test al, al
mov dword [esp + 0x9c], ecx
jne 0x46cf77
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
inc ecx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], ecx
je 0x46ccd5
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
lea eax, [esp + 0x40]
jmp 0x46ccfe
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0x238]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x48]
mov ebx, dword [eax]
mov edx, dword [eax + 4]
cmp dword [esi + 0x34], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edx
jne 0x46cd18
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
jmp 0x46cd7c
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x78]
push edx
call dword [eax + 0xa4]
mov edi, dword [esi + 0x34]
mov ebp, dword [esp + 0x78]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, ebx
cdq
idiv edi
mov dword [esi + 0x44], ecx
mov edi, eax
cmp edi, ecx
jge 0x46cd4f
cmp ebx, ebp
jl 0x46cd4b
inc edi
cmp edi, ecx
jl 0x46cd59
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
jmp 0x46cd7c
cmp edi, 1
jge 0x46cd63
mov edi, 1
mov eax, dword [esi + 0x3c]
sub ecx, edi
cmp eax, ecx
jle 0x46cd71
mov dword [esi + 0x3c], ecx
jmp 0x46cd7c
test eax, eax
jge 0x46cd7c
mov dword [esi + 0x3c], 0
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
push 1
push edx
mov edx, dword [esi + 0x3c]
push edi
push edx
push 4
call dword [eax + 0x180]
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esi + 0x4c], edi
je 0x46cdaf
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x50]
jmp 0x46cdd8
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x238]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x58]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x38]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x88], ecx
jne 0x46cdf5
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
jmp 0x46ce5f
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
lea eax, [esp + 0x80]
push eax
call dword [edx + 0xa4]
mov edi, dword [esi + 0x38]
mov ebp, dword [esp + 0x84]
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 0x46ce32
cmp ebx, ebp
jl 0x46ce2e
inc edi
cmp edi, ecx
jl 0x46ce3c
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
jmp 0x46ce5f
cmp edi, 1
jge 0x46ce46
mov edi, 1
mov eax, dword [esi + 0x40]
sub ecx, edi
cmp eax, ecx
jle 0x46ce54
mov dword [esi + 0x40], ecx
jmp 0x46ce5f
test eax, eax
jge 0x46ce5f
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [esi + 0x40]
push edi
push eax
push 8
call dword [edx + 0x180]
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esi + 0x50], edi
je 0x46ce94
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
lea eax, [esp + 0x60]
jmp 0x46cebd
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x2c]
push edx
call dword [eax + 0x238]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x68]
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x70]
mov eax, dword [eax + 4]
jne 0x46cecc
cmp eax, ebx
je 0x46ced7
cmp dword [esp + 0x14], 5
jl 0x46ccb0
mov edx, dword [esi + 0x3c]
mov edi, dword [esp + 0x30]
cmp edi, edx
je 0x46cf27
mov al, byte [esi + 0x54]
test al, al
mov eax, dword [esi + 0x28]
je 0x46cf0e
test eax, eax
je 0x46cef5
lea eax, [esi + 0x20]
jmp 0x46cef7
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx]
sub edi, edx
imul edi, dword [esi + 0x34]
push eax
push 0
push edi
call dword [ebx + 0x194]
jmp 0x46cf27
test eax, eax
je 0x46cf17
lea eax, [esi + 0x20]
jmp 0x46cf19
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
push eax
push 1
call dword [edx + 0x134]
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x34]
cmp edi, edx
je 0x46cf77
mov al, byte [esi + 0x55]
test al, al
mov eax, dword [esi + 0x28]
je 0x46cf5e
test eax, eax
je 0x46cf45
lea eax, [esi + 0x20]
jmp 0x46cf47
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx]
sub edi, edx
imul edi, dword [esi + 0x38]
push eax
push edi
push 0
call dword [ebx + 0x194]
jmp 0x46cf77
test eax, eax
je 0x46cf67
lea eax, [esi + 0x20]
jmp 0x46cf69
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
push eax
push 1
call dword [edx + 0x134]
mov eax, dword [0x525d58]
mov ecx, dword [esp + 0x94]
dec eax
pop edi
mov dword [0x525d58], eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret