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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edi
cmp dword [esi], edi
jne 0x101612dd
or eax, 0xffffffff
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x98], eax
push 0x80
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp + 0x10]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
and ecx, 0xfffff
mov dword [esp + 0x20], ecx
cmp ecx, dword [ebp + 0x20]
jbe 0x10161306
cmp byte [ebp + 0x24], 0
jne 0x10161306
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov edx, dword [esi + 4]
call fcn.10160e20
test al, al
mov eax, 1
je 0x10161a60
mov dword [esp + 0x3c], eax
cmp dword [esi], edi
jne 0x10161332
cmp byte [ebp + 0x24], 0
je 0x10161332
mov eax, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], edi
test eax, eax
jbe 0x101619d6
mov edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xec]
add edx, 1
mov dword [esp + 0x2c], 0
je 0x10161985
mov edx, ecx
jmp 0x10161363
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, 0x20
ja 0x101612f8
mov esi, dword [ebp + 0x10]
inc eax
mov ecx, 0x20
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x30], eax
xor eax, eax
mov ecx, 0x28
mov esi, ebx
lea edi, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
cmp dword [edx + 8], eax
jbe 0x10161524
mov dword [esp + 0x18], eax
cmp dword [esp + 0x2c], 0
je 0x101613b6
mov ebx, 1
sub ebx, dword [esp + 0x1c]
jmp 0x101613ba
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 4
jae 0x101619a5
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 4]
and ecx, 0xfffff
imul ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + ebx*4 + 0xc]
lea ecx, [esi - 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], esi
cmp ecx, 0xf
ja 0x10161555
xor eax, eax
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + eax*4]
cmp eax, dword [esp + 0x20]
jae 0x1016143a
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 4]
and ecx, 0xfffff
imul ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [edx + ecx*4]
test eax, eax
je 0x1016143a
mov ecx, dword [esp + 0x24]
push esi
call fcn.10161080
test al, al
je 0x101616da
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 4
jb 0x10161402
cmp dword [esp + 0x14], 1
je 0x1016195f
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov edi, edi
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
cmp eax, dword [esp + 0x20]
jae 0x101614ed
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov edi, dword [esi + ebx*4 + 0xd0]
add ecx, eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + ebx*8 + 0x2c]
mov edx, dword [esi + ebx*8 + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x40], edx
and eax, edx
mov edx, dword [ecx + 0x44]
and edx, dword [esp + 0x44]
cmp eax, dword [esp + 0x40]
jne 0x101616e7
cmp edx, dword [esp + 0x44]
jne 0x101616e7
mov eax, dword [esi + ebx*4 + 0xa0]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + ebx*4 + 0x88]
push eax
mov eax, dword [esi + ebx*8 + 0x5c]
push eax
mov eax, dword [esi + ebx*8 + 0x58]
push eax
push edx
mov edx, dword [esi + ebx*4 + 0xb8]
mov eax, ecx
mov ecx, edi
call fcn.1015f370
test al, al
je 0x101616e7
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 4
jb 0x10161460
cmp dword [esp + 0x14], 1
je 0x10161962
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 8]
jb 0x101613a4
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 8], ecx
jbe 0x10161788
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x2c], 0
je 0x101616f4
mov eax, 1
sub eax, ecx
jmp 0x101616f6
cmp esi, 0x10
jb 0x101615c1
cmp esi, 0x40
ja 0x101615c6
sub esi, 0x10
xor ecx, ecx
shl esi, 4
mov dword [esp + 0x10], ecx
lea esi, [esp + esi + 0xe0]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + ecx*4]
cmp eax, dword [esp + 0x20]
jae 0x101615a9
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x10161598
mov edi, dword [esp + 0x18]
add edi, eax
cmp ecx, dword [edx + edi*4]
je 0x10161598
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
jmp 0x101615af
mov dword [esi], 0xffffffff
inc ecx
add esi, 4
mov dword [esp + 0x10], ecx
cmp ecx, 4
jb 0x10161572
jmp 0x10161448
cmp esi, 0x40
jbe 0x101615cd
sub esi, 0x40
mov dword [esp + 0x10], esi
mov eax, dword [eax + 0x88]
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
je 0x101616da
mov eax, dword [esp + 0x10]
mov ecx, 0x28
lea esi, [esp + 0xe0]
lea edi, [esp + 0x180]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx]
imul eax, eax, 0xf0
lea esi, [eax + ecx]
mov ecx, dword [ebp + 0x24]
mov eax, dword [esi + 0xe8]
push ecx
push eax
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
lea ecx, [edx + eax*4]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call fcn.1015f7b0
test eax, eax
jne 0x101616da
cmp dword [esp + 0x14], eax
jne 0x10161448
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x18c]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax + 0x88]
lea edx, [esp + 0x74]
push edx
push esi
push ecx
mov ecx, dword [esp + 0x44]
call fcn.10161210
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10161448
mov edx, dword [esp + eax + 0xe0]
cmp edx, 0xffffffff
je 0x101616a0
mov ecx, dword [esp + eax + 0x180]
cmp ecx, 0xffffffff
je 0x101616a0
cmp edx, ecx
jne 0x101616da
add eax, 4
cmp eax, 0xa0
jb 0x10161684
xor eax, eax
lea esp, [esp]
mov ecx, dword [esp + eax + 0x180]
cmp ecx, 0xffffffff
je 0x101616c3
mov dword [esp + eax + 0xe0], ecx
add eax, 4
cmp eax, 0xa0
jb 0x101616b0
mov dword [esp + 0x14], 0
jmp 0x10161453
mov dword [esp + 0x14], 1
jmp 0x1016195f
mov dword [esp + 0x14], 1
jmp 0x10161962
mov eax, ecx
mov eax, dword [esi + eax*4 + 0xc]
cmp eax, 0x10
jb 0x10161772
cmp eax, 0x20
jae 0x10161772
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea ebx, [ebx]
mov eax, dword [esp + ecx*4 + 0x60]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1016175a
xor ebx, ebx
test edi, edi
jbe 0x1016175a
mov edx, dword [eax + 8]
xor ecx, ecx
test edx, edx
jbe 0x10161751
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
add eax, ebx
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
cmp edi, dword [eax]
je 0x10161766
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10161741
mov edi, dword [esp + 0x20]
inc ebx
cmp ebx, edi
jb 0x10161725
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 0x20
jb 0x10161710
jmp 0x10161772
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x10], edi
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esi + 8]
jb 0x1016153e
cmp dword [esp + 0x14], 0
jne 0x10161962
cmp dword [esp + 0x34], 0
jne 0x101619bc
mov ecx, esi
cmp dword [ecx], 0
jne 0x101619bc
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + ecx*4 + 0x60]
mov dword [esp + 0x28], eax
test eax, eax
je 0x101618ce
mov eax, dword [eax + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], eax
test eax, eax
jbe 0x101618ce
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x18], edx
test edx, edx
jbe 0x101617f0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
jmp 0x101617f2
xor ecx, ecx
mov dword [esp + 0x4c], 0
test edx, edx
jbe 0x101618b7
cmp ecx, dword [ebp + 8]
je 0x1016187c
test ecx, ecx
je 0x1016187c
test dword [ecx + 0x3c], 0xf0000000
je 0x1016187c
mov edx, dword [ecx]
xor bl, bl
test edx, edx
jbe 0x1016187c
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
mov esi, dword [esp + 0x10]
mov esi, dword [eax + esi*4]
mov eax, dword [ecx + 4]
lea ecx, [ecx]
mov edi, dword [eax]
cmp edi, esi
je 0x1016183b
cmp dword [edi + 0x7c], esi
jne 0x1016183d
mov bl, 1
add eax, 4
sub edx, 1
jne 0x10161830
test bl, bl
je 0x1016187c
xor eax, eax
jmp 0x10161850
cmp ecx, dword [esp + eax*4 + 0x60]
jne 0x10161858
xor bl, bl
cmp ecx, dword [esp + eax*4 + 0x64]
jne 0x10161860
xor bl, bl
cmp ecx, dword [esp + eax*4 + 0x68]
jne 0x10161868
xor bl, bl
cmp ecx, dword [esp + eax*4 + 0x6c]
jne 0x10161870
xor bl, bl
add eax, 4
cmp eax, 0x20
jb 0x10161850
test bl, bl
jne 0x101618ab
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, edx
jb 0x10161897
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x4c], eax
jmp 0x101618a1
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + eax*4]
cmp eax, edx
jb 0x10161802
jmp 0x101618b7
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x38]
jb 0x101617e1
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, 0x20
jb 0x101617af
cmp dword [esp + 0x14], 1
je 0x1016195f
xor eax, eax
mov dword [esp + 0x18], eax
lea esp, [esp]
mov ebx, dword [esp + eax*4 + 0xe0]
cmp ebx, 0xffffffff
je 0x1016194e
xor edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [esp + edx*4 + 0x60]
test eax, eax
je 0x10161940
mov esi, dword [eax + 8]
xor ecx, ecx
test esi, esi
jbe 0x10161940
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + edx*4 + 0xe0]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
cmp edi, edx
je 0x101616da
cmp dword [ebx + 0x7c], edx
je 0x101616da
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10161921
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0x20
jb 0x10161902
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x28
jb 0x101618f0
cmp dword [esp + 0x14], 0
je 0x101619bc
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xec]
mov ebx, dword [ebp + 0x18]
inc eax
inc ecx
mov dword [esp + 0x2c], eax
cmp eax, ecx
jb 0x10161360
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
test edi, edi
je 0x101619bc
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, eax
jb 0x10161340
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov dword [esp + 0x14], 0x8007054f
mov edi, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp dword [esp + 0x30], 0x20
jb 0x101619d3
mov edi, 0x8007003f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov edi, eax
mov ecx, 0x20
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax]
jbe 0x101619fe
mov dword [eax], ecx
lea ecx, [esp + 0xe0]
xor eax, eax
sub ebx, ecx
lea esp, [esp]
lea edx, [ebx + eax*4]
mov ecx, dword [esp + edx + 0xe0]
cmp ecx, 0xffffffff
je 0x10161a2f
mov edx, dword [esp + eax*4 + 0xe0]
cmp edx, 0xffffffff
je 0x10161a2f
cmp ecx, edx
jne 0x10161a69
inc eax
cmp eax, 0x28
jb 0x10161a10
xor eax, eax
jmp 0x10161a40
mov ecx, dword [esp + eax*4 + 0xe0]
cmp ecx, 0xffffffff
je 0x10161a56
lea edx, [ebx + eax*4]
mov dword [esp + edx + 0xe0], ecx
inc eax
cmp eax, 0x28
jb 0x10161a40
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20