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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [0x1064a988]
mov dword [esp + 4], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test eax, eax
je 0x1010593e
call eax
test eax, eax
je 0x1010593a
mov eax, dword [esp + 0x74]
mov dword [eax], 0x55
xor eax, eax
add esp, 0x64
ret
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x54], eax
lea eax, [ebx + 6]
push edi
mov edi, 0xfffffffe
mov dword [esp + 0x70], edx
mov dword [esp + 0x10], eax
cmp byte [edx], 0x85
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
jne 0x101059bd
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x64], eax
xor eax, eax
mov word [esp + 0x6a], ax
lea eax, [esp + 0x64]
mov dword [esp + 0x4c], ecx
mov word [esp + 0x68], cx
mov dword [ebp + 0x24], eax
mov esi, dword [esp + 0xb0]
lea eax, [edx + 1]
add ebx, 3
mov byte [eax], 0
mov dword [esp + 0x5c], eax
lea eax, [edx + 2]
add ebx, edx
xor edx, edx
lea ecx, [esp + 0x10]
test esi, esi
mov dword [esp + 0x60], eax
mov byte [eax], 0
mov eax, dword [ebp + 0x40]
cmove ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x1c], ebx
je 0x10105a08
mov dword [ebp + 0x40], eax
cmp dword [esp + 0x88], 0
je 0x10105a2b
mov byte [ebx], 0x7c
inc ebx
mov dword [esp + 0x48], ebx
mov word [ebx], 0
add ebx, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x1c], ebx
push ecx
push ebp
push dword [esp + 0x9c]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.10109290
add esp, 0x30
test eax, eax
je 0x10105c35
mov ecx, dword [esp + 0x3c]
cmp dword [ebp + 0x40], ecx
mov eax, dword [esp + 0xb0]
cmova ecx, dword [ebp + 0x40]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x78]
test eax, eax
jne 0x10105b9d
cmp byte [edx], 0x77
je 0x10105ac7
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x10105b40
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
test ecx, ecx
js 0x10105af7
cmp ecx, eax
jne 0x10105ae1
cmp dword [esp + 0x2c], esi
je 0x10105b0f
test edi, edi
jns 0x10105aef
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
mov edi, ecx
mov dword [esp + 0x30], 0xffffffff
test eax, eax
js 0x10105b0f
mov ecx, dword [esp + 0x18]
test ecx, ecx
jns 0x10105b13
mov ecx, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], ecx
jmp 0x10105b13
mov ecx, dword [esp + 0x18]
mov eax, ecx
xor eax, edi
test eax, 0xfffffffd
jne 0x10105b34
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x20], eax
jne 0x10105b34
or edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jmp 0x10105b3c
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 0x78]
cmp dword [esp + 0x88], 0
je 0x10105b96
push 0
mov eax, ecx
push ebp
shr eax, 0xb
push 0
and eax, 1
push eax
push edx
mov byte [ebx], 0
call fcn.101069e0
mov ecx, eax
add esp, 0x14
cmp ecx, 0xfffffffd
jne 0x10105b74
mov dword [ebp + 0x74], 1
jmp 0x10105b92
test ecx, ecx
js 0x10105c12
cmp ecx, dword [ebp + 0x48]
jle 0x10105b84
mov dword [ebp + 0x48], ecx
mov edx, dword [esp + 0x48]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x28]
cmp byte [esi], 0x7c
jne 0x10105c4c
test eax, eax
je 0x10105bdb
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x90]
mov eax, dword [eax]
add dword [esp + 0x10], 3
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
add ebx, 3
add ebx, eax
mov eax, dword [esp + 0x50]
inc esi
mov dword [esp + 0x28], esi
jmp 0x101059f7
mov ecx, dword [esp + 0x54]
mov eax, ebx
sub eax, edx
sar eax, 8
mov byte [ebx], 0x77
mov byte [ebx + 1], al
mov al, bl
sub al, dl
mov byte [ebx + 2], al
mov eax, dword [esp + 0x50]
mov edi, ebx
mov dword [esp + 0x70], ebx
add ebx, 3
inc esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], esi
jmp 0x101059f7
cmp ecx, 0xfffffffe
jne 0x10105c1c
lea eax, [ecx + 0x26]
jmp 0x10105c2c
mov eax, 0x19
mov edx, 0x46
cmp ecx, 0xfffffffc
cmove eax, edx
mov ecx, dword [esp + 0x84]
mov dword [ecx], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x64
ret
test eax, eax
jne 0x10105c80
mov edi, dword [esp + 0x14]
mov edx, ebx
sub edx, edi
jmp 0x10105c60
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov eax, edx
sar eax, 8
mov byte [edi + 2], dl
mov byte [edi + 1], al
sub edi, ecx
mov edx, ecx
test ecx, ecx
jg 0x10105c60
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
sar eax, 8
mov byte [ebx], 0x78
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov byte [ebx + 2], al
add ebx, 3
cmp dword [esp + 0x4c], 0
jle 0x10105d35
mov eax, dword [ebp + 0x24]
cmp word [eax + 6], 0
je 0x10105d27
push dword [esp + 0x58]
mov eax, dword [esp + 0x7c]
shr eax, 0xb
push ebp
and eax, 1
push eax
push 3
push ecx
mov byte [ebx], 0
call fcn.10108af0
mov ecx, dword [esp + 0x4c]
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 3]
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x7c]
add ebx, 3
mov byte [edx], 0x81
mov ecx, ebx
sub ecx, edx
sar ecx, 8
mov byte [eax], cl
mov al, bl
sub al, dl
mov edx, dword [esp + 0x80]
add esp, 0x20
mov byte [edx], al
mov byte [ebx], 0x78
mov byte [ebx + 1], cl
mov byte [ebx + 2], al
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x24]
add ebx, 3
add ecx, 6
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x10105d39
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x10105d39
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [eax], ebx
mov eax, dword [esp + 0x80]
mov dword [eax], esi
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0xb0]
mov dword [eax], edx
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
test esi, esi
je 0x10105db7
mov edx, dword [esi]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x10105db2
mov eax, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x64
ret
lea eax, [edx + ecx]
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret