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

Disassembly:
sub esp, 0xa0
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
mov ebp, ecx
mov dword [eax + 0x18], 0
push esi
mov dword [eax + 0x1c], 0
push edi
cmp dword [ebp + 0x88], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
je 0x1006531c
cmp dword [ebx + 0x120], 0
je 0x100652ad
mov ecx, dword [ebx + 0x124]
test ecx, ecx
js 0x10065275
mov eax, dword [ebp + 0x414]
cmp ecx, dword [eax + 0x24]
jge 0x10065275
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + ecx*4]
jmp 0x10065277
xor edx, edx
mov eax, dword [edx + 0x38]
test eax, eax
je 0x1006531c
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x31], 0x85855
mov dword [ebx + 0x35], eax
mov dword [ebx + 0x39], ecx
mov eax, dword [edx + 0x38]
movzx esi, word [eax + 0x1c]
movzx edx, word [eax + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x25], eax
mov word [ebx + 0x2d], dx
jmp 0x1006530e
mov eax, dword [ebx]
test eax, eax
je 0x1006531c
cmp word [eax], 0
je 0x1006531c
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.1015e350
add esp, 8
cmp eax, 0xffffffff
je 0x1006531c
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
movsx edi, word [esp + 0x7a]
mov ecx, dword [esp + 0x98]
movsx esi, word [esp + 0x7c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x4c], eax
mov dword [ebx + 0x31], 0x85855
mov dword [ebx + 0x35], edx
mov dword [ebx + 0x39], ecx
mov dword [ebx + 0x25], edx
mov word [ebx + 0x2d], di
mov word [ebx + 0x2f], si
mov dword [ebx + 0x29], ecx
mov dword [ebx + 0x21], 0xc5855
cmp dword [ebx + 0x64], 0
je 0x100653e1
mov eax, dword [ebx]
xorps xmm0, xmm0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
movlpd qword [esp + 0x30], xmm0
mov dword [ebx + 0x114], 0
test eax, eax
je 0x100653a9
lea ecx, [esp + 0x48]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100653a9
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0xe8], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0xec], ecx
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0xf0], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xf4], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], ecx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x4b8]
mov ecx, dword [ebp + 0x4bc]
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], ecx
cmp dword [ebp + 0x444], 0
jne 0x10065509
xor ecx, ecx
jmp 0x10065522
cmp byte [esp + 0xbc], 0
je 0x1006544c
mov eax, dword [ebx + 0x74]
cdq
mov edi, eax
mov esi, edx
lea eax, [esp + 0x48]
mov dword [esp + 0x10], esi
push eax
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100654b9
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0xe8], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0xec], ecx
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0xf0], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xf4], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], ecx
jmp 0x100654b9
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push ebx
call fcn.1001fb60
test eax, eax
jne 0x10065468
or edi, 0xffffffff
or esi, edi
mov dword [esp + 0x10], esi
jmp 0x1006549d
mov esi, dword [ebp + 0x1f0]
test esi, esi
je 0x1006547e
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x10], esi
jmp 0x10065497
mov eax, dword [ebp + 0x198]
lea ecx, [ebp + 0x198]
mov eax, dword [eax + 0x28]
call eax
mov edi, eax
mov dword [esp + 0x10], edx
mov esi, edx
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], esi
lea eax, [ebx + 0xf8]
mov ecx, ebp
push eax
lea eax, [ebx + 0xf0]
push eax
lea eax, [ebx + 0xe8]
push eax
call fcn.1001fc30
test esi, esi
jg 0x100653b5
jl 0x100654cb
test edi, edi
jae 0x100653b5
mov edx, dword [esp + 0x14]
lea ecx, [ebp + 8]
mov eax, dword [ebx + 4]
push 1
push eax
test edx, edx
je 0x100654df
push edx
jmp 0x100654e4
push 0xa0000001
call fcn.1001f180
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
test ecx, ecx
jl 0x10065502
jg 0x100654f9
test eax, eax
je 0x10065502
push ecx
push eax
mov ecx, ebp
call fcn.1001fd00
xor eax, eax
jmp 0x10065b89
mov edx, dword [ebp + 0x450]
mov eax, dword [ebp + 0x448]
or eax, dword [ebp + 0x44c]
lea ecx, [edx - 1]
jne 0x10065522
mov ecx, edx
mov dword [ebx + 0xb8], ecx
mov ecx, dword [ebp + 0x424]
test ecx, ecx
je 0x10065550
call fcn.1005f8f0
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], edx
test edx, edx
jg 0x10065570
jl 0x10065564
cmp eax, 0xffffffff
jae 0x10065570
jmp 0x10065564
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
cmp dword [ebx + 0xb8], 0xffff
jl 0x1006557a
mov dword [ebx + 0x118], 1
mov edx, dword [ebx + 0x120]
test edx, edx
jne 0x100655d6
mov eax, edi
or eax, esi
jne 0x10065592
mov dword [ebx + 0x114], eax
jmp 0x100655ee
mov eax, dword [ebx + 0x114]
cmp eax, 8
jne 0x100655b2
mov ecx, edi
mov eax, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x100655d6
jb 0x100655cc
cmp ecx, 4
jmp 0x100655ca
cmp eax, 0xe
jne 0x100655d6
mov ecx, edi
mov eax, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x100655d6
jb 0x100655cc
cmp ecx, 0x1e
ja 0x100655d6
mov dword [ebx + 0x114], 0
test esi, esi
jl 0x100655ee
jg 0x100655e4
cmp edi, 0x80000000
jb 0x100655ee
mov dword [ebx + 0x118], 1
cmp dword [ebx + 4], 0
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x1c], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
je 0x10065806
test edx, edx
je 0x10065625
cmp dword [ebx + 8], 0
je 0x10065625
test eax, eax
je 0x10065806
mov eax, dword [ebx + 8]
test eax, eax
je 0x1006563c
push eax
call fcn.10154f5a
add esp, 4
mov dword [ebx + 8], 0
cmp dword [esp + 0x2c], 0
je 0x100656a7
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10065696
push eax
call dword [esp + 0x20]
lea eax, [eax*4 + 1]
push eax
push 1
mov dword [esp + 0x34], eax
call fcn.1015c282
mov esi, eax
add esp, 8
test esi, esi
je 0x10065696
push 0
push 0
push dword [esp + 0x34]
push esi
push 0xffffffffffffffff
push dword [esp + 0x34]
push 0
push 0xfde9
call dword [esp + 0x34]
test eax, eax
jne 0x10065698
push esi
call fcn.10154f5a
add esp, 4
xor esi, esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 1
jmp 0x10065802
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x10065728
cmp eax, 0xfde9
je 0x100656d7
cmp eax, 0xfde8
jne 0x100656df
mov dword [esp + 0x20], 0
push ecx
call dword [esp + 0x20]
lea eax, [eax*4 + 1]
push eax
push 1
mov dword [esp + 0x2c], eax
call fcn.1015c282
mov esi, eax
add esp, 8
test esi, esi
je 0x10065728
push dword [esp + 0x20]
push 0
push dword [esp + 0x2c]
push esi
push 0xffffffffffffffff
push dword [esp + 0x2c]
push 0
push dword [esp + 0x4c]
call dword [esp + 0x34]
test eax, eax
jne 0x1006572a
push esi
call fcn.10154f5a
add esp, 4
xor esi, esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0x80], 0
je 0x10065802
test esi, esi
je 0x10065759
cmp dword [esp + 0x2c], 0
je 0x10065802
push esi
call fcn.10154f5a
add esp, 4
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100657ac
push eax
call dword [esp + 0x20]
lea eax, [eax*4 + 1]
push eax
push 1
mov dword [esp + 0x38], eax
call fcn.1015c282
mov esi, eax
add esp, 8
test esi, esi
je 0x100657ac
push 0
push 0
push dword [esp + 0x38]
push esi
push 0xffffffffffffffff
push dword [esp + 0x2c]
push 0
push 0xfde9
call dword [esp + 0x34]
test eax, eax
jne 0x100657ec
push esi
call fcn.10154f5a
add esp, 4
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 1
mov eax, dword [ebp + 0xc8]
push 4
push 1
mov dword [ebx + 0x110], eax
call fcn.1015c282
add esp, 8
mov dword [ebx + 8], eax
test eax, eax
je 0x10065802
mov byte [eax + 2], 0x3f
mov eax, dword [ebx + 8]
mov byte [eax + 1], 0x3f
mov eax, dword [ebx + 8]
mov byte [eax], 0x3f
jmp 0x10065802
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 1
mov eax, dword [ebp + 0xc8]
mov dword [ebx + 0x110], eax
mov esi, dword [esp + 0x10]
cmp dword [ebx + 8], 0
jne 0x10065825
push 0
push dword [ebx + 4]
lea ecx, [ebp + 8]
push 0xa0000047
call fcn.1001f180
xor eax, eax
jmp 0x10065b89
mov ax, word [ebx + 0x114]
mov word [ebx + 0xd0], ax
mov eax, dword [ebx + 0x100]
test eax, eax
jne 0x10065848
lea ecx, [ebx + 0xf8]
call fcn.10002100
mov dword [ebx + 0xd2], eax
cmp dword [ebp + 0xec], 0
je 0x10065861
mov dword [ebx + 0xd2], 0
push ebx
lea eax, [ebx + 0xce]
mov ecx, ebp
push eax
call fcn.1008d9c0
mov ecx, dword [ebx + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10065876
xor eax, eax
sub ecx, edx
mov word [ebx + 0xe2], cx
mov word [ebx + 0xe4], ax
cmp word [ebx + 0xd0], ax
jne 0x100658c7
cmp dword [ebx + 0x118], eax
je 0x100658b3
mov dword [ebx + 0xda], 0xffffffff
or edi, 0xffffffff
mov dword [esp + 0x34], eax
jmp 0x100658c1
mov dword [esp + 0x34], esi
mov dword [ebx + 0xda], edi
mov dword [esp + 0x34], esi
mov dword [ebx + 0xde], edi
cmp dword [ebx + 0x118], eax
je 0x100658e2
mov eax, 0x14
mov word [ebx + 0xe4], ax
mov eax, 0x1f
jmp 0x100658e7
mov eax, 0xb
movzx ecx, ax
mov eax, dword [ebx + 0x78]
cmp eax, 2
je 0x100658fc
cmp eax, 3
je 0x100658fc
cmp eax, 4
jne 0x1006590f
mov eax, 0x63
mov word [ebx + 0xe4], cx
mov word [ebx + 0xd0], ax
cmp dword [ebp + 0x84], 0
je 0x10065a22
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
test edi, edi
je 0x10065a22
test eax, eax
je 0x10065a22
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x10065a22
mov edx, eax
cmp dx, 0x20
jb 0x10065965
cmp word [ecx], 0x7e
ja 0x10065965
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10065946
jmp 0x10065a22
mov eax, dword [ebx + 0x1d]
test eax, eax
je 0x10065975
push eax
call fcn.10154f5a
add esp, 4
push edi
call dword [esp + 0x20]
lea eax, [eax*4 + 1]
push eax
push 1
mov dword [esp + 0x38], eax
call fcn.1015c282
mov esi, eax
add esp, 8
test esi, esi
je 0x100659ba
push 0
push 0
push dword [esp + 0x38]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [esp + 0x34]
test eax, eax
jne 0x100659bc
push esi
call fcn.10154f5a
add esp, 4
xor esi, esi
mov dword [ebx + 0x1d], esi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100659c2
mov edx, dword [esp + 0x18]
sub esi, ecx
mov eax, 0x7075
mov dword [ebx + 0x19], esi
mov ecx, edx
mov word [ebx + 0x10], ax
mov byte [ebx + 0x14], 1
lea eax, [esi + 5]
mov word [ebx + 0x12], ax
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100659f0
sub ecx, esi
push 0x101eb0a8
push ecx
or ecx, 0xffffffff
call fcn.10108970
not eax
mov dword [ebx + 0x15], eax
mov ax, word [ebx + 0xe4]
add ax, 9
add ax, word [ebx + 0x19]
mov word [ebx + 0xe4], ax
cmp dword [ebx + 0x68], 0
jne 0x10065a40
cmp dword [ebp + 0x88], 0
je 0x10065a40
cmp word [ebx + 0x21], 0
je 0x10065a40
add word [ebx + 0xe4], 0x10
mov edi, dword [esp + 0x28]
lea eax, [ebx + 0xc8]
push 0
push 0x1e
push eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x18]
movzx eax, word [ebx + 0xe2]
mov ecx, edi
mov esi, dword [edi]
cdq
push edx
push eax
push dword [ebx + 8]
call dword [esi + 0x18]
cmp dword [ebx + 0x118], 0
mov esi, 1
je 0x10065acd
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
add eax, dword [ebp + 0x4b8]
mov ecx, dword [ebx + 0x54]
adc edx, dword [ebp + 0x4bc]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x48]
push 0
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
mov dword [ebx + 0xb4], edx
mov dword [esp + 0x38], eax
mov eax, dword [edi]
push 0x14
push ecx
mov ecx, edi
mov dword [esp + 0x3c], 0x100001
call dword [eax + 0x18]
mov eax, dword [ebx + 0x78]
cmp eax, 2
je 0x10065adf
cmp eax, 3
je 0x10065adf
cmp eax, 4
jne 0x10065b30
mov ecx, dword [ebx + 0x114]
mov dword [esp + 0x30], 0x79901
mov dword [esp + 0x34], 0x45410002
cmp eax, 2
jne 0x10065b01
mov byte [esp + 0x38], 1
jmp 0x10065b1b
cmp eax, 3
jne 0x10065b0d
mov byte [esp + 0x38], 2
jmp 0x10065b1b
cmp eax, 4
setne al
dec al
and al, 3
mov byte [esp + 0x38], al
mov eax, dword [edi]
push 0
mov word [esp + 0x3d], cx
lea ecx, [esp + 0x34]
push 0xb
push ecx
mov ecx, edi
call dword [eax + 0x18]
cmp dword [ebp + 0x84], 0
je 0x10065b63
cmp dword [ebx + 0x19], 0
je 0x10065b63
mov edx, dword [edi]
lea eax, [ebx + 0x10]
push 0
push 9
push eax
mov ecx, edi
call dword [edx + 0x18]
mov eax, dword [ebx + 0x19]
mov ecx, edi
mov esi, dword [edi]
cdq
push edx
push eax
push dword [ebx + 0x1d]
call dword [esi + 0x18]
mov esi, 1
cmp dword [ebx + 0x68], 0
jne 0x10065b87
cmp dword [ebp + 0x88], 0
je 0x10065b87
add ebx, 0x21
cmp word [ebx], 0
je 0x10065b87
mov edx, dword [edi]
mov ecx, edi
push 0
push 0x10
push ebx
call dword [edx + 0x18]
mov eax, esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0xa0
ret 0xc