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

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ecx, dword [eax]
xor ebp, ebp
push edi
cmp esi, ebp
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x17], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], ecx
setne byte [esp + 0x16]
call fcn.1006af10
mov ebx, dword [esp + 0x5c]
mov esi, eax
add esp, 4
movsx edx, word [ebx + 0x26]
mov al, byte [ebx + 0x2c]
mov dword [esp + 0x44], edx
test al, 0x20
jne 0x100667b3
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], 1
jmp 0x100667ca
push ebx
call fcn.1004e640
add esp, 4
xor ecx, ecx
mov cx, word [eax + 0x32]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x74]
cmp edx, ebp
jle 0x100668ff
mov dword [esp + 0x1c], 0
jmp 0x100667e4
mov ecx, dword [esp + 0x74]
movsx edx, word [ebx + 0x24]
cmp ebp, edx
je 0x100668e7
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add eax, edx
xor edx, edx
mov dl, byte [eax + 0x14]
mov edi, edx
test edi, edi
je 0x100668e7
cmp cl, 0xa
je 0x10066817
mov edi, ecx
and edi, 0xff
jmp 0x1006681c
cmp edi, 0xa
je 0x10066828
cmp edi, 5
jne 0x1006682d
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x1006682d
mov edi, 2
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x10066835
jmp dword [eax*4 + 0x10067080]
mov eax, dword [esp + 0x54]
push eax
call fcn.10062440
add esp, 4
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + edx]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
push eax
push ecx
push str._s._s
push edx
call fcn.1003ab70
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x80]
lea ecx, [eax + ebp + 1]
push ecx
push edi
push 0x513
push 0x17
push esi
call fcn.100574e0
push 1
push esi
call fcn.1004ace0
add esp, 0x34
jmp 0x100668e7
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
push edx
lea ecx, [eax + ebp + 1]
push ecx
push 0x4c
push esi
call fcn.10057e50
add esp, 0x10
jmp 0x100668e7
mov edx, dword [esp + 0x68]
lea edi, [edx + ebp + 1]
push edi
push 0x4d
push esi
call fcn.10058940
mov edx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x64]
push edi
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx + 4]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.10058c90
push ebx
push esi
call fcn.10057e70
mov ebx, dword [esp + 0x78]
add esp, 0x20
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
inc ebp
add ecx, 0x18
cmp ebp, eax
mov dword [esp + 0x1c], ecx
jl 0x100667e0
mov ebp, dword [ebx + 0x18]
test ebp, ebp
je 0x100669f6
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x18]
test ah, 0x20
jne 0x100669f6
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x54]
inc eax
mov dword [ecx + 0x5c], eax
mov eax, dword [esp + 0x74]
cmp al, 0xa
je 0x10066938
mov edi, eax
and edi, 0xff
jmp 0x1006693d
mov edi, 2
mov eax, dword [ebp]
mov dword [esp + 0x38], 0
test eax, eax
jle 0x100669f6
mov dword [esp + 0x24], 0
push esi
call fcn.10058960
mov edx, dword [ebp + 4]
push 8
mov dword [esp + 0x4c], eax
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x60]
push ecx
push edx
call fcn.1005c190
add esp, 0x14
cmp edi, 4
jne 0x10066996
mov eax, dword [esp + 0x78]
push eax
push 0
push 0x10
push esi
call fcn.10057e50
add esp, 0x10
jmp 0x100669c9
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + ecx + 4]
test eax, eax
jne 0x100669a7
mov eax, dword [ebx]
cmp edi, 5
jne 0x100669b1
mov edi, 2
push 3
push 0
push eax
mov eax, dword [esp + 0x60]
push edi
push 0x113
push eax
call fcn.10062460
add esp, 0x18
mov ecx, dword [esp + 0x44]
push ecx
push esi
call fcn.100589b0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp]
add esp, 8
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
jl 0x10066958
mov al, byte [esp + 0x70]
test al, al
je 0x10066bb8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10066bb8
push esi
call fcn.10058960
mov ebp, eax
mov al, byte [esp + 0x78]
xor edx, edx
add esp, 4
mov dl, byte [ebx + 0x2d]
cmp al, 0xa
mov dword [esp + 0x44], ebp
mov edi, edx
je 0x10066a38
mov edi, dword [esp + 0x74]
and edi, 0xff
jmp 0x10066a42
cmp edi, 0xa
jne 0x10066a42
mov edi, 2
mov al, byte [esp + 0x12]
test al, al
je 0x10066a6b
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push eax
push ebp
push ecx
push 0x4f
push esi
call fcn.1004aaf0
push 0x88
push esi
call fcn.1004ace0
add esp, 0x1c
cmp edi, 5
jne 0x10066aa3
cmp byte [esp + 0x74], 5
je 0x10066aa3
mov eax, dword [ebx + 8]
test eax, eax
je 0x10066aa3
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x10066a94
cmp cl, 3
je 0x10066a94
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10066a7e
jmp 0x10066aa3
push 0x10
push esi
call fcn.10058220
add esp, 8
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
push edx
push ebp
push eax
push 0x44
push esi
call fcn.1004aaf0
lea eax, [edi - 1]
add esp, 0x14
cmp eax, 4
ja case.default.0x10066ac5
jmp dword [eax*4 + 0x10067090]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x54]
xor edi, edi
test dword [ecx + 0x18], 0x40000
je 0x10066af3
push edi
push edi
push 0x6d
push ebx
push ebp
call fcn.100716f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10066b32
push 0
push 0
push ebx
push ebp
call fcn.10064d20
add esp, 0x10
test eax, eax
jne 0x10066b32
mov eax, dword [ebx + 8]
test eax, eax
je 0x10066b5a
push ebp
call fcn.100670b0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push 0
push edx
push eax
push ebx
push ebp
call fcn.10063b30
add esp, 0x18
mov dword [esp + 0x30], 1
jmp 0x10066b8c
push ebp
call fcn.100670b0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push 1
push 5
push 0
push 1
push ecx
push edx
push eax
push edi
push ebx
push ebp
call fcn.10063910
add esp, 0x2c
mov dword [esp + 0x30], 1
jmp 0x10066b8c
mov ecx, dword [esp + 0x78]
push ecx
push 0
push 0x10
push esi
call fcn.10057e50
add esp, 0x10
jmp 0x10066b8c
mov edi, 2
mov edx, dword [esp + 0x54]
push ebx
push edi
push edx
call fcn.100670d0
add esp, 0xc
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.100589b0
mov edi, dword [esp + 0x44]
add esp, 8
test edi, edi
je 0x10066bb8
push 0x10
push esi
call fcn.10058220
push edi
push esi
mov dword [esp + 0x58], eax
call fcn.10057e70
add esp, 0x10
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x10067034
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x54]
cmp dword [eax], 0
je 0x10067015
mov al, byte [esp + 0x13]
test al, al
jne 0x10066c05
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
inc ecx
push ecx
push edx
push esi
call fcn.10066530
add esp, 0xc
mov byte [esp + 0x13], 1
push esi
call fcn.10058960
mov ebx, eax
mov eax, dword [ebp + 0x24]
add esp, 4
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x10066c4b
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
push 0
push 0x1c
push esi
call fcn.10057e50
mov edx, dword [esp + 0x78]
push 8
inc edx
push ebx
mov dword [edi + 0x5c], edx
mov eax, dword [ebp + 0x24]
push eax
push edi
call fcn.1005bd40
add esp, 0x20
mov dword [edi + 0x5c], 0
xor ecx, ecx
mov cx, word [ebp + 0x34]
push ecx
push edi
call fcn.1005c700
xor ebx, ebx
add esp, 8
cmp word [ebp + 0x34], bx
mov dword [esp + 0x5c], eax
jbe 0x10066cc4
mov edi, eax
mov edx, dword [ebp + 4]
movsx eax, word [edx + ebx*2]
test eax, eax
jl 0x10066c8a
mov ecx, dword [esp + 0x58]
movsx edx, word [ecx + 0x24]
cmp eax, edx
je 0x10066c8a
mov ecx, dword [esp + 0x68]
lea eax, [eax + ecx + 1]
jmp 0x10066ca7
cmp dword [esp + 0x34], edi
je 0x10066cb4
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x68]
test ecx, ecx
mov dword [esp + 0x34], 0xffffffff
jne 0x10066ca7
mov dword [esp + 0x34], edi
push edi
push eax
push 0x22
push esi
call fcn.10057e50
add esp, 0x10
xor edx, edx
inc ebx
mov dx, word [ebp + 0x34]
inc edi
cmp ebx, edx
jl 0x10066c69
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x5c]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [ebp + 0x34]
push ecx
push edx
push ebx
push 0x30
push esi
call fcn.1004aaf0
xor eax, eax
mov ax, word [ebp + 0x34]
push eax
push ebx
push edi
call fcn.1005b280
mov al, byte [esp + 0x32]
add esp, 0x20
test al, al
je 0x10066d19
cmp dword [esp + 0x14], ebp
jne 0x10066d19
mov al, byte [esp + 0x70]
test al, al
jne 0x10066d19
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call fcn.100589b0
add esp, 8
jmp 0x10067015
xor edx, edx
mov dl, byte [ebp + 0x36]
mov edi, edx
test edi, edi
mov dword [esp + 0x38], edi
jne 0x10066d51
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
xor eax, eax
mov ax, word [ebp + 0x34]
push eax
push ecx
push edx
call fcn.1005c730
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.100589b0
add esp, 0x14
jmp 0x10067015
mov eax, dword [esp + 0x74]
cmp al, 0xa
je 0x10066d63
mov edi, eax
and edi, 0xff
jmp 0x10066d6d
cmp edi, 0xa
jne 0x10066d71
mov edi, 2
mov dword [esp + 0x38], edi
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov cx, word [ebp + 0x32]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push 0x41
push esi
call fcn.1004aab0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp ebp, eax
jne 0x10066da0
mov ebx, dword [esp + 0x5c]
jmp 0x10066db4
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.1005c700
add esp, 8
mov ebx, eax
mov al, byte [esp + 0x12]
mov dword [esp + 0x18], ebx
test al, al
jne 0x10066dc9
cmp edi, 5
jne 0x10066f32
mov ecx, dword [esp + 0x58]
test byte [ecx + 0x2c], 0x20
jne 0x10066e1a
mov edx, dword [esp + 0x20]
push ebx
push edx
push 0x6e
push esi
call fcn.10057e50
mov al, byte [esp + 0x22]
add esp, 0x10
test al, al
je 0x10066f32
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push 0x4f
push esi
call fcn.1004aaf0
push 0x88
push esi
call fcn.1004ace0
add esp, 0x1c
jmp 0x10066f32
mov eax, dword [esp + 0x14]
cmp ebp, eax
je 0x10066e66
xor edi, edi
cmp word [eax + 0x32], di
jbe 0x10066e66
mov edx, dword [esp + 0x14]
lea ecx, [ebx + edi]
push ecx
mov eax, dword [edx + 4]
mov cx, word [eax + edi*2]
push ecx
push ebp
call fcn.1005e9b0
movsx edx, ax
mov eax, dword [esp + 0x2c]
add esp, 8
push edx
push eax
push 0x2e
push esi
call fcn.1004aaf0
mov edx, dword [esp + 0x28]
xor ecx, ecx
add esp, 0x14
inc edi
mov cx, word [edx + 0x32]
cmp edi, ecx
jl 0x10066e2a
mov al, byte [esp + 0x12]
test al, al
je 0x10066f32
mov eax, dword [esp + 0x14]
xor ecx, ecx
push esi
mov cx, word [eax + 0x32]
call fcn.100589e0
mov edx, dword [ebp + 0x38]
mov ebx, eax
and edx, 3
add esp, 4
add ebx, ecx
cmp dl, 2
mov dword [esp + 0x44], 0x4e
jne 0x10066ea6
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
jmp 0x10066eae
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], edx
xor edi, edi
test ecx, ecx
jle 0x10066f32
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x54]
mov edx, dword [ecx + edi*4]
push edx
push eax
call fcn.1005f550
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [ecx + 4]
movsx edx, word [edx + edi*2]
mov dword [esp + 0x4c], edx
xor edx, edx
mov dx, word [ecx + 0x32]
dec edx
cmp edi, edx
jne 0x10066ef2
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], 0x4f
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
push 0xfffffffffffffffc
push eax
mov eax, dword [esp + 0x48]
add eax, edi
push eax
lea eax, [ecx + edx + 1]
mov ecx, dword [esp + 0x50]
push ebx
push eax
push ecx
push esi
call fcn.100574e0
push 0x88
push esi
call fcn.1004ace0
mov eax, dword [esp + 0x38]
xor edx, edx
add esp, 0x24
inc edi
mov dx, word [eax + 0x32]
cmp edi, edx
jl 0x10066eb4
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x10066f6d
cmp eax, 3
jle 0x10066f5c
cmp eax, 4
jne 0x10066f6d
mov ecx, dword [esp + 0x78]
push ecx
push 0
push 0x10
push esi
call fcn.10057e50
mov ebx, dword [esp + 0x64]
add esp, 0x10
jmp 0x10066fd6
mov ebx, dword [esp + 0x54]
push ebp
push eax
push ebx
call fcn.100624c0
add esp, 0xc
jmp 0x10066fd6
mov ebx, dword [esp + 0x54]
xor edi, edi
push ebx
call fcn.100670b0
mov edx, dword [esp + 0x2c]
add esp, 4
test dword [edx + 0x18], 0x40000
je 0x10066f9d
mov eax, dword [esp + 0x58]
push edi
push edi
push 0x6d
push eax
push ebx
call fcn.100716f0
add esp, 0x14
mov edi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp ebp, ecx
sete cl
push ecx
mov ecx, dword [esp + 0x68]
push 5
push 0
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push edi
push eax
push ebx
call fcn.10063910
add esp, 0x28
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call fcn.100589b0
mov edi, dword [esp + 0x64]
xor edx, edx
mov dx, word [ebp + 0x34]
push edx
push edi
push ebx
call fcn.1005c730
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, edi
je 0x10067015
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.1005c730
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [ebp + 0x14]
inc edx
add ecx, 4
mov dword [esp + 0x20], edx
test ebp, ebp
mov dword [esp + 0x24], ecx
jne 0x10066bd3
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1006706b
inc eax
push eax
push 0
push 0x10
push esi
call fcn.10057e50
mov eax, dword [esp + 0x58]
push eax
push esi
call fcn.10057e70
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x48]
add esp, 0x18
mov dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x40
ret