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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [eax]
mov edx, dword [esi]
mov dword [ebp - 0x18], ecx
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x2c], edx
mov dword [eax], 0
mov dword [esi], 0
je 0x4666c8
mov eax, dword [edi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xc], 0
lea eax, [edi + 0x20]
push ebx
mov dword [eax], 2
je 0x4667a0
mov ebx, dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], edx
push ebx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
mov eax, dword [edi + 0x88]
push 0
push dword [edi + 0x78]
call eax
mov ecx, dword [ebp + 0x14]
add esp, 0x20
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x14]
mov dword [esi], ecx
mov esi, dword [ebp - 0x14]
add eax, esi
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x28], edx
mov dword [edi + 0x14], eax
jne 0x466730
test ebx, ebx
jne 0x466730
cmp edx, 1
jne 0x466737
mov dword [edi + 0x18], 1
mov ecx, dword [edi + 8]
cmp ecx, 1
jne 0x46674e
mov eax, dword [ebp + 8]
pop ebx
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x466796
mov ebx, 1
cmp ecx, ebx
jbe 0x466791
lea esi, [edi + 0x90]
push eax
push dword [edi + 0xc]
mov eax, dword [esi + 0x14]
push dword [esi]
call eax
add esp, 0xc
cmp dword [ebp - 0x28], 1
je 0x466785
cmp dword [ebp + 0xc], 0
je 0x466788
mov ecx, dword [ebp - 0x18]
cmp dword [edi + 0x14], ecx
jne 0x466788
mov eax, dword [edi + 0x14]
inc ebx
add esi, 0x18
cmp ebx, dword [edi + 8]
jb 0x466763
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 1
je 0x4667da
cmp dword [edi + 4], 0
jne 0x4667d1
mov eax, dword [edi]
push 0x60000
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 4], eax
test eax, eax
jne 0x4667ce
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], 0
jmp 0x4667e0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [edi + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 1
mov dword [eax], 2
mov dword [ebp - 0x14], edx
test edx, edx
je 0x4668bf
nop dword [eax]
lea eax, [esi + 5]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov dword [ebp - 0x30], eax
test esi, esi
jne 0x466833
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax]
jmp 0x466855
mov ecx, dword [edi + esi*4 + 0x38]
lea edx, [esi - 1]
shl edx, 0x11
add edx, dword [edi + esi*4 + 0x2c]
add edx, dword [edi + 4]
sub ecx, dword [edi + esi*4 + 0x2c]
mov dword [ebp - 0x24], edx
mov edx, dword [edi + esi*4 + 0x20]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
lea eax, [edx - 1]
mov dword [ebp - 4], ecx
cmp esi, eax
jne 0x46686f
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub ecx, dword [edx]
mov edx, dword [ebp - 0x14]
jmp 0x466888
mov eax, dword [edi + esi*4 + 0x30]
mov ecx, edx
cmp eax, dword [edi + esi*4 + 0x3c]
jne 0x46689a
mov eax, esi
mov ecx, 0x20000
shl eax, 0x11
add eax, dword [edi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + esi*4 + 0x68]
test ecx, ecx
je 0x4668cf
test ebx, ebx
cmove ebx, ecx
mov ecx, edx
mov eax, dword [ebp - 8]
inc esi
mov edx, ecx
cmp esi, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0xc]
jb 0x466810
test eax, eax
lea eax, [edi + 0x20]
jne 0x4667e6
cmp dword [ebp - 0x28], 0
je 0x4668c6
mov dword [edi + 0x20], 1
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 4]
push dword [ebp - 0x20]
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
add esp, 0x20
test ecx, ecx
je 0x466901
test ebx, ebx
mov dword [edi + esi*4 + 0x68], ecx
cmove ebx, ecx
mov eax, dword [ebp - 0x34]
xor edx, edx
cmp eax, 1
sete dl
mov dword [ebp - 0x30], edx
je 0x466925
cmp dword [edi + 8], 1
mov dword [ebp - 0x28], 0
jne 0x466925
test ecx, ecx
jne 0x466925
mov dword [edi + 0x20], eax
mov edx, dword [ebp - 4]
test esi, esi
jne 0x466936
mov eax, dword [ebp + 0x14]
add dword [eax], edx
add dword [ebp - 0xc], edx
jmp 0x46693a
add dword [edi + esi*4 + 0x2c], edx
mov ecx, dword [edi + 8]
lea eax, [ecx - 1]
cmp esi, eax
mov eax, dword [ebp - 0x14]
jne 0x466954
mov edx, dword [ebp + 8]
add dword [edx], eax
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
jmp 0x46696a
mov ecx, dword [ebp - 0x30]
mov dword [edi + esi*4 + 0x3c], eax
mov dword [edi + esi*4 + 0x30], 0
mov dword [edi + esi*4 + 0x24], ecx
mov ecx, dword [edi + 8]
test eax, eax
jne 0x466976
test edx, edx
je 0x46689a
mov eax, 1
mov dword [ebp - 8], eax
jmp 0x46689d