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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov dword [esp + 0x24], eax
movzx eax, byte [edx + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xf8], 0
movzx edx, al
test dl, 0x70
je 0x665d70
and edx, 0x40
je 0x66617a
test al, al
js 0x6662e0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00660d00
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.006a4590
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.006a4590
mov eax, dword [esp + 0x24]
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx + 0xa]
test dx, dx
je 0x666121
test al, al
js 0x6663f5
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
test eax, eax
je 0x666160
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [edx]
mov eax, dword [ecx]
cmp eax, esi
mov edx, 7
cmovl eax, esi
cmp eax, 7
cmovl eax, edx
add eax, 2
cmp eax, 0x31
mov dword [esp + 0x14], eax
jg 0x6662b1
mov eax, 0x10
cmp dword [esp + 0x14], 0x10
cmovge eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x775ee0]
lea eax, [eax + eax + 0xa]
cmp eax, 0x30
lea ebx, [esp + 0x78]
mov dword [esp + 0x2c], 0
ja 0x66631c
add esi, dword [esp + 0x14]
mov eax, 0x10
cmp esi, 0x10
cmovge eax, esi
cmp esi, 0x31
jg 0x666302
movzx eax, byte [eax + 0x775ee0]
lea eax, [eax + eax + 0xa]
cmp eax, 0x3c
lea esi, [esp + 0x3c]
mov dword [esp + 0x28], 0
jbe 0x665e3d
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
mov dword [esp + 0x28], eax
je 0x6664b4
lea ecx, [esp + 0xa8]
mov dword [esp], ecx
lea edi, [esp + 0xf8]
mov dword [esp + 4], 0x40
call fcn.0065d410
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
add eax, dword [edx]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0065fae0
mov dword [esp + 4], 0x232279
mov dword [esp], esi
call fcn.0065fae0
lea ecx, [esp + 0xa8]
mov edx, ebx
mov dword [esi + 4], 0xfffffffa
mov eax, ebx
mov dword [esp], ecx
mov ecx, esi
mov dword [esp + 4], edi
call fcn.00660fa0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xfc]
mov dword [esp], eax
lea ecx, [esp + 0xa8]
mov eax, esi
mov dword [esp + 0xfc], 0
mov dword [esp + 0xa8], 2
mov dword [esp + 0xb4], 5
mov dword [esp + 4], edi
call fcn.0065efe0
mov eax, esi
mov dword [esi + 4], 0
call fcn.0065df90
cmp eax, 9
jg 0x665efe
lea edx, [eax*8]
lea eax, [edx + eax*2]
movzx ebp, word [eax + eax + 0x775e0c]
mov dword [esp], esi
mov eax, ebp
and ebp, 3
sar eax, 2
mov dword [esp + 4], eax
call fcn.0065fae0
mov eax, 0xfffffffd
mov ecx, esi
sub eax, ebp
mov ebp, 9
lea edx, [esp + 0xa8]
mov dword [esi + 4], eax
mov eax, ebx
mov byte [esi + 8], pe_nt_image_headers32
mov dword [esp], edx
mov edx, ebx
mov dword [esp + 0xa8], 0x10
mov dword [esp + 0xb4], 3
mov dword [esp + 8], edi
mov dword [esp + 4], 0
call fcn.006622c0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0xc0], 0
mov edx, dword [esp + 0x18]
mov byte [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov eax, dword [ecx + 4]
mov dword [esp + 0xe0], 1
mov word [esp + 0xea], 1
mov dword [esp + 0xc8], 0x1e847e
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0xcc], 0xffe17b82
mov dword [esp + 0xa8], 9
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xdc], eax
mov eax, dword [edx]
add eax, 9
mov dword [esp + 0xc4], eax
add byte [ebx + 8], 0x80
mov edx, ebx
lea ecx, [esp + 0xc4]
mov eax, esi
mov dword [esp], edi
call fcn.00665440
lea ecx, [esp + 0xc4]
mov edx, esi
add byte [ebx + 8], 0x80
mov eax, esi
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], edi
call fcn.00660fa0
lea eax, [esp + 0xc4]
mov edx, esi
mov dword [esp], eax
lea ecx, [esp + 0xe0]
mov eax, esi
mov dword [esp + 8], edi
mov dword [esp + 4], pe_nt_image_headers32
call fcn.006622c0
movzx edx, word [esi + 0xa]
mov eax, dword [esi]
test dx, dx
mov word [esp + 0x12], dx
jne 0x66608a
cmp eax, 1
je 0x6661b0
mov ecx, dword [esp + 0x20]
add eax, dword [esi + 4]
mov edx, dword [ebx]
add eax, dword [ecx]
mov ecx, dword [ebx + 4]
add ecx, edx
cmp eax, ecx
jge 0x6660d0
cmp edx, dword [esp + 0x14]
je 0x6661d0
cmp word [ebx + 0xa], 0
jne 0x6660b8
cmp edx, 1
je 0x666242
cmp word [esp + 0x12], 0
jne 0x6660d0
cmp dword [esi], 1
je 0x666296
lea esi, [esi]
lea ecx, [esp + 0xa8]
mov edx, ebx
mov dword [esp], ecx
mov eax, ebx
mov ecx, esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
call fcn.006622c0
cmp dword [esp + 0x14], ebp
je 0x666015
mov edx, dword [esp + 0x18]
add ebp, ebp
cmp ebp, dword [esp + 0x14]
cmovg ebp, dword [esp + 0x14]
mov eax, ebp
add eax, dword [edx]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xc4], eax
jmp 0x666015
cmp dword [ecx], 1
jne 0x665d81
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [eax + 4], 0
mov dword [eax], 1
mov word [eax + 0xa], 0
mov byte [eax + 8], 0xc0
jmp 0x665d42
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, 0x28
jle 0x666349
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
jmp 0x665da4
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esp], ecx
xor ecx, ecx
call fcn.00660d80
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x665d42
movzx edx, byte [esi + 8]
and edx, 0x70
jne 0x66608a
mov edx, dword [ebx]
cmp edx, dword [esp + 0x14]
jne 0x6660a8
lea esi, [esi]
cmp word [ebx + 0xa], 0
mov dword [esp + 0xfc], 1
jne 0x6661eb
cmp dword [ebx], 1
je 0x666417
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xfc]
mov eax, dword [ecx]
lea ecx, [esp + 0xa8]
mov dword [esp], edx
mov edx, ebx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
call fcn.0065efe0
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp], ecx
lea ecx, [esp + 0xfc]
call fcn.0065f940
jmp 0x665d42
movzx eax, byte [ebx + 8]
test al, 0x70
jne 0x6660b8
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xa8]
mov dword [esp], eax
lea ecx, [esp + 0xe0]
lea eax, [esp + 0xec]
mov dword [esp + 8], edi
mov dword [esp + 4], 1
call fcn.00661780
cmp word [esp + 0xf6], 0
jne 0x6664a2
mov dword [ebx + 4], 0
jmp 0x6661d0
movzx eax, byte [esi + 8]
test al, 0x70
jne 0x6660d0
mov eax, dword [ebx + 4]
sub eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x6660d0
cmp dword [esp + 0x14], 0x10
mov ecx, 0x10
cmovge ecx, dword [esp + 0x14]
mov edx, 0x55555556
add ecx, 2
mov eax, ecx
imul edx
sar ecx, 0x1f
sub edx, ecx
lea eax, [edx + edx + 0xa]
jmp 0x665dde
mov eax, dword [esp + 0x120]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
or dword [eax], 0x80
jmp 0x665d42
lea ecx, [eax + 2]
mov edx, 0x55555556
mov eax, ecx
imul edx
sar ecx, 0x1f
sub edx, ecx
lea eax, [edx + edx + 0xa]
jmp 0x665e16
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
mov dword [esp + 0x2c], eax
jne 0x665df3
mov edx, dword [esp + 0x120]
mov dword [esp + 0x28], 0
or dword [edx], 0x10
jmp 0x665d42
cmp dx, 0xa
je 0x666433
cmp dx, 2
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
jne 0x665da4
cmp esi, 1
jne 0x665da4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb4], 3
mov eax, dword [ecx + 4]
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0xb8], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0xbc], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 4], str.0.6931471805599453094172321214581765680755
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xa8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0065fd30
mov edx, dword [esp + 0x120]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
or dword [edx], 0x820
jmp 0x665d42
mov edx, dword [esp + 0x120]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
or dword [edx], 0x80
jmp 0x665d42
movzx eax, byte [ebx + 8]
test al, 0x70
jne 0x6661eb
mov dword [esp + 0xfc], 0
jmp 0x6661eb
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
cmp esi, 2
jne 0x665da4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb4], 3
mov eax, dword [ecx + 4]
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0xb8], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0xbc], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 4], str.2.302585092994045684017991454684364207601
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xa8]
mov dword [esp + 8], eax
jmp 0x6663c7
mov edx, dword [esp + 0x120]
or dword [edx], 0x820
jmp 0x6661d0
mov edx, dword [esp + 0x120]
or dword [edx], 0x10
jmp 0x665d42