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

Disassembly:
sub esp, 0x58
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
mov ebp, dword [ecx]
mov dword [esp + 0x20], eax
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov eax, 0x30
mov ecx, ebp
lea edx, [esi + 0x34]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x100a9f1b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x100a9f03
test eax, eax
je 0x100a9f78
movzx ebx, byte [edx]
movzx edi, byte [ecx]
sub ebx, edi
jne 0x100a9f6a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100a9f78
movzx ebx, byte [edx]
movzx edi, byte [ecx]
sub ebx, edi
jne 0x100a9f6a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100a9f78
movzx ebx, byte [edx]
movzx edi, byte [ecx]
sub ebx, edi
jne 0x100a9f6a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100a9f78
movzx ebx, byte [edx]
movzx edx, byte [ecx]
sub ebx, edx
je 0x100a9f78
test ebx, ebx
mov eax, 1
jg 0x100a9f7a
or eax, 0xffffffff
jmp 0x100a9f7a
xor eax, eax
test eax, eax
je 0x100a9f88
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [esp + 0x2c], eax
call fcn.100a9b70
mov ebp, eax
test ebp, ebp
jne 0x100aa3c8
mov eax, dword [esi + 0x44]
test eax, eax
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
jne 0x100aa088
mov eax, 0x377f0682
bswap eax
mov ecx, 0x2de218
bswap ecx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x70]
test eax, eax
mov dword [esp + 0x44], ecx
mov edx, ebx
mov ecx, eax
bswap edx
bswap ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
jne 0x100a9fe5
lea edx, [esi + 0x54]
push edx
push 8
call fcn.1009b5b0
add esp, 8
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
xor edx, edx
lea eax, [esp + 0x40]
xor ecx, ecx
jmp 0x100aa000
mov edi, dword [eax]
add edi, edx
add ecx, edi
mov edi, dword [eax + 4]
add eax, 4
add edi, ecx
add edx, edi
add eax, 4
lea edi, [esp + 0x58]
cmp eax, edi
jb 0x100aa000
mov eax, ecx
bswap eax
mov dword [esp + 0x58], eax
push 0
mov eax, edx
bswap eax
mov dword [esi + 0x50], edx
push 0
mov dword [esp + 0x64], eax
mov eax, dword [esi + 8]
push 0x20
lea edx, [esp + 0x4c]
mov dword [esi + 0x24], ebx
mov byte [esi + 0x41], 0
mov dword [esi + 0x4c], ecx
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x100aa3c6
cmp byte [esi + 0x30], al
je 0x100aa088
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x100aa088
mov eax, dword [esi + 8]
mov edx, dword [eax]
and ecx, 0x13
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100aa3c6
mov edx, dword [esp + 0x7c]
mov edi, dword [esi + 8]
mov dword [esp + 0x50], edx
lea eax, [ebx + 0x18]
cdq
push edx
xor ecx, ecx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x44], edx
call fcn.1010ef80
mov ebx, dword [esp + 0x24]
add eax, 0x20
adc edx, 0
test ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
je 0x100aa1cd
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x100aa168
cmp dword [ebx + 0xc], 0
jne 0x100aa0f5
cmp dword [esp + 0x78], 0
jne 0x100aa168
mov edx, dword [ebx + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
mov dword [esp + 0x48], 0
call fcn.100a9810
mov ebp, dword [esp + 0x48]
add esp, 0xc
cmp ebp, edi
jb 0x100aa168
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [ebp - 1]
push 0
push eax
call fcn.1010ef80
mov ecx, dword [esi + 0x68]
add eax, 0x38
adc edx, 0
test ecx, ecx
je 0x100aa13d
cmp ebp, ecx
jae 0x100aa140
mov dword [esi + 0x68], ebp
mov ecx, dword [ebx + 4]
push edx
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esi + 8]
push ecx
call fcn.10098890
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100aa3c6
and word [ebx + 0x18], 0xffbf
jmp 0x100aa1be
add dword [esp + 0x20], 1
cmp dword [esp + 0x78], 0
je 0x100aa180
cmp dword [ebx + 0xc], 0
jne 0x100aa180
mov eax, dword [esp + 0x74]
jmp 0x100aa182
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, ebx
lea edi, [esp + 0x4c]
call fcn.100a9cd0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x100aa3c6
mov eax, dword [esp + 0x6c]
add eax, 0x18
cdq
add dword [esp + 0x10], eax
mov dword [esp + 0x28], ebx
adc dword [esp + 0x14], edx
or word [ebx + 0x18], 0x40
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x100aa0dc
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x78], 0
je 0x100aa31d
cmp dword [esi + 0x68], 0
je 0x100aa1f7
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.100a9d50
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100aa3c6
mov eax, dword [esp + 0x7c]
test al, 0x20
je 0x100aa2bb
cmp byte [esi + 0x31], 0
je 0x100aa2aa
mov ecx, dword [esi + 8]
call fcn.100a42f0
cdq
mov ebx, eax
mov ecx, eax
add ecx, dword [esp + 0x10]
mov edi, edx
adc edx, dword [esp + 0x14]
push edi
sub ecx, 1
push ebx
sbb edx, 0
push edx
push ecx
call fcn.1010ed30
push edi
push ebx
push edx
push eax
call fcn.1010ef80
cmp dword [esp + 0x14], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jg 0x100aa2bb
jl 0x100aa252
cmp dword [esp + 0x10], eax
jae 0x100aa2bb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x4c]
call fcn.100a9cd0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x100aa3c6
mov eax, dword [esp + 0x6c]
add eax, 0x18
cdq
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
adc eax, edx
add dword [esp + 0x1c], 1
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
jl 0x100aa252
jg 0x100aa2bb
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x48]
jb 0x100aa252
jmp 0x100aa2bb
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
and eax, 0x13
push eax
push edi
call edx
add esp, 8
mov ebp, eax
cmp byte [esi + 0x2f], 0
je 0x100aa31d
mov ebx, dword [esi + 0x14]
test ebx, ebx
mov edi, dword [esi + 0x10]
jl 0x100aa31d
jg 0x100aa2d1
test edi, edi
jb 0x100aa31d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push 0
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.1010ef80
add eax, 0x20
adc edx, 0
cmp edx, ebx
jl 0x100aa305
jg 0x100aa30d
cmp eax, edi
ja 0x100aa30d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
mov edi, esi
call fcn.100a8f20
add esp, 8
mov byte [esi + 0x2f], 0
mov edi, dword [esp + 0x24]
test edi, edi
mov ebx, dword [esi + 0x44]
je 0x100aa351
test ebp, ebp
jne 0x100aa3c6
test byte [edi + 0x18], 0x40
je 0x100aa34a
mov edx, dword [edi + 0x14]
push edx
add ebx, 1
push esi
mov eax, ebx
call fcn.100a8060
add esp, 8
mov ebp, eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100aa328
test ebp, ebp
jne 0x100aa3c6
cmp dword [esp + 0x1c], 0
jle 0x100aa390
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
sub dword [esp + 0x1c], 1
push ecx
add ebx, 1
push esi
mov eax, ebx
call fcn.100a8060
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100aa355
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1010dc50
add esp, 0x58
ret
test ebp, ebp
jne 0x100aa3c6
mov eax, dword [esp + 0x6c]
mov edx, eax
sar edx, 0x10
and eax, 0xff00
or edx, eax
cmp dword [esp + 0x78], ebp
mov word [esi + 0x42], dx
mov dword [esi + 0x44], ebx
je 0x100aa3c6
mov eax, dword [esp + 0x74]
add dword [esi + 0x3c], 1
mov edx, esi
mov dword [esi + 0x48], eax
call fcn.100a7d60
mov dword [esi + 0xc], ebx
mov eax, ebp
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010dc50
add esp, 0x58
ret