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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10291440]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x48], eax
mov ecx, dword [edi]
mov eax, dword [esp + 0xb0]
mov ebx, dword [edi + 0xd8]
mov dword [esp + 0x28], ecx
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0x13c]
and edx, 0x4000
mov dword [eax], 0
neg edx
mov dword [esp + 0x88], 0
mov eax, 4
mov dword [esp + 0x10], 0
sbb edx, edx
mov dword [esp + 0x24], 0
neg edx
inc edx
cmp dword [esp + 0xac], 5
mov dword [esp + 0x40], edx
cmovne eax, dword [esp + 0xac]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
cmp eax, 4
jne 0x10156d70
mov dword [esp + 0x14], 7
mov dword [esp + 0x40], 2
xor edx, edx
cmp eax, 4
sete dl
inc edx
test dword [ecx + 0x2e0], 0x2000
mov dword [esp + 0x38], edx
je 0x10156d96
mov dword [esp + 0x3c], 1
cmp eax, 4
je 0x10156d9e
mov dword [esp + 0x3c], 0
mov eax, dword [ecx + 0x138]
xor ebp, ebp
lea ecx, [esp + 0x78]
mov dword [esp + 0x50], eax
push ecx
push ebp
mov eax, dword [eax]
push edx
push eax
push ebp
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x90], ebp
call fcn.101594c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101571ca
lea ebp, [eax + 1]
lea eax, [esp + 0x10]
push eax
push esi
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
add esp, 0x18
test eax, eax
jne 0x10157b1a
cmp dword [ebx + 0x28], esi
lea eax, [ebx + 0x28]
je 0x10156e1f
push eax
push edi
call fcn.101597e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x101571ca
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 6]
cmp eax, 0x16
ja case.0x10156e3f.13
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + 0x10157b54]
mov ebp, 1
jmp dword [eax*4 + 0x10157b34]
mov eax, dword [ebx + 0x3c]
test eax, eax
je case.0x10156e3f.7
add eax, 1
mov dword [ebx + 0x3c], eax
jne 0x10156e5d
inc eax
mov dword [ebx + 0x3c], eax
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x4c]
cmp eax, esi
jb case.0x10156e3f.6
mov ecx, dword [edx + 0x48]
cmp ecx, esi
jbe 0x10156e87
cmp eax, ecx
jae case.0x10156e3f.6
sub ecx, eax
sub eax, esi
cmp eax, ecx
jae case.0x10156e3f.6
cmp dword [esp + 0xac], 5
jne case.0x10156e3f.11
cmp dword [esp + 0x34], 0
mov ecx, 7
mov dword [esp + 0x14], ecx
jne case.default.0x10156eb5
mov eax, ebp
mov dword [esp + 0x24], ebp
lea ebp, [ecx - 6]
movzx eax, byte [eax + 0x10157b54]
jmp dword [eax*4 + 0x10157b34]
mov eax, dword [edi + 0x14]
mov ebp, dword [esp + 0x20]
push eax
push edx
push dword [edi + 0xc]
test byte [ebp + 0x9c], 1
push dword [esp + 0x24]
je 0x10156f8d
call fcn.1010adb0
mov esi, eax
mov dword [esp + 0x20], 0
add esp, 0x10
test esi, esi
jne 0x10157afc
lea ebp, [edi + 0xc0]
push ebp
push 3
lea eax, [edi + 0x88]
push eax
push 8
push dword [edi + 0x84]
push dword [esp + 0x34]
call fcn.100f4230
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157704
push ebp
push 2
lea eax, [edi + 0x88]
push eax
push 0x10
push dword [edi + 0x84]
push dword [esp + 0x34]
call fcn.100f4230
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157704
lea eax, [esp + 0x10]
push eax
push esi
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
mov edx, dword [esp + 0x28]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157729
mov ecx, dword [esp + 0x14]
mov eax, 1
mov ebp, eax
movzx eax, byte [eax + 0x10157b54]
jmp dword [eax*4 + 0x10157b34]
mov ebp, 1
call fcn.1010adb0
mov esi, eax
mov dword [esp + 0x20], 0
add esp, 0x10
test esi, esi
jne 0x10157af8
lea eax, [esp + 0x78]
push eax
push 8
push 3
push dword [esp + 0x28]
push esi
push edi
call fcn.101594c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1015770e
lea eax, [esp + 0x78]
push eax
push 0x10
push 2
push esi
push esi
push edi
call fcn.101594c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1015770e
lea eax, [esp + 0x10]
push eax
push esi
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101571ca
mov ecx, dword [esp + 0x14]
mov eax, ebp
jmp 0x10156e2f
mov eax, dword [edx + 0x48]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], eax
mov dword [ebx + 0x3c], eax
jmp 0x101570b3
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je case.0x10156e3f.9
mov esi, dword [edx + 0x48]
cmp ecx, esi
je 0x10157724
jae 0x10157066
mov ebp, dword [edx + 0x4c]
cmp esi, ebp
jbe 0x10157724
cmp ecx, ebp
jbe 0x10157066
mov eax, ecx
sub esi, ecx
sub eax, ebp
cmp eax, esi
ja 0x10157724
lea eax, [ecx - 1]
mov dword [ebx + 0x3c], eax
test eax, eax
jne 0x101570b3
mov dword [ebx + 0x3c], 0xffffffff
jmp 0x101570b3
mov eax, dword [edx + 0x4c]
cmp dword [edx + 0x48], eax
je case.0x10156e3f.11
add eax, 0xffffffff
mov dword [ebx + 0x3c], eax
jne 0x101570b3
mov dword [ebx + 0x3c], 0xffffffff
jmp 0x101570b3
mov eax, dword [esp + 0x44]
cmp dword [eax + 4], 4
jne 0x1015773a
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x3c], eax
test eax, eax
je 0x10157733
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x78], 0
je 0x101570dc
lea eax, [esp + 0x78]
push eax
push dword [edi + 8]
call fcn.100f5d40
mov edx, dword [esp + 0x18]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10157729
push dword [edi + 0x14]
xor ebp, ebp
push edx
push dword [edi + 0xc]
push dword [esp + 0x24]
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x101571ca
cmp dword [esp + 0x30], 4
mov dword [esp + 0x10], ebp
jne 0x10157115
cmp dword [esp + 0x3c], ebp
jne 0x10157115
lea eax, [ebp + 3]
cmp dword [esp + 0x24], ebp
je 0x1015711a
mov eax, 2
lea ecx, [esp + 0x88]
push ecx
push eax
push dword [esp + 0x48]
push dword [ebx + 0x3c]
push 2
push edi
call fcn.101594c0
mov esi, eax
add esp, 0x18
cmp esi, 0xffff86ee
je 0x1015714b
cmp esi, 0xffff86ef
jne 0x1015722b
mov ecx, dword [esp + 0x30]
cmp ecx, 4
jne 0x1015722f
lea eax, [esp + 0x78]
mov dword [esp + 0x34], ebp
push eax
push 0
push dword [esp + 0x40]
push dword [esp + 0x28]
push 0
push edi
call fcn.101594c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101571ca
lea ebp, [eax + 1]
lea eax, [esp + 0x10]
push eax
push esi
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101571ca
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 6]
cmp eax, 0x16
jbe 0x10156e33
push ecx
push str.__qamc_get
push dword [esp + 0x28]
call fcn.100d1020
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10157af8
push dword [edi + 0x14]
push edx
push dword [edi + 0xc]
push dword [esp + 0x24]
call fcn.1010adb0
add esp, 0x10
test eax, eax
je 0x101571f2
test esi, esi
cmove esi, eax
test ebp, ebp
je 0x10157af8
cmp dword [esp + 0x78], 0
je 0x10157af8
lea eax, [esp + 0x78]
push eax
push dword [edi + 8]
call fcn.100f5d40
mov ebp, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x10157afc
test esi, esi
cmove esi, eax
jmp 0x10157afc
mov ecx, dword [esp + 0x30]
test esi, esi
jne 0x101571ca
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
cmp eax, 0x14
ja case.0x10157246.9
movzx eax, byte [eax + 0x10157b74]
jmp dword [eax*4 + 0x10157b6c]
cmp dword [esp + 0x3c], ebp
je 0x10157262
mov eax, dword [esp + 0x34]
cmp eax, dword [ebx + 0x3c]
jne 0x10157425
jmp case.0x10157246.8
cmp ecx, 4
je 0x10157425
cmp dword [esp + 0x2c], ebp
je 0x10157425
lea eax, [esp + 0x78]
push eax
push 0
push dword [esp + 0x40]
push dword [esp + 0x28]
push 0
push edi
call fcn.101594c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157761
lea ebp, [eax + 1]
lea eax, [esp + 0x10]
push eax
push esi
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157761
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
test esi, esi
je 0x101572d7
mov eax, dword [ebx + 0x3c]
cmp eax, dword [edx + 0x48]
jne 0x101572e9
mov eax, dword [esp + 0x14]
cmp eax, 0xf
jne 0x10157332
mov eax, dword [edx + 0x4c]
dec eax
cmp dword [ebx + 0x3c], eax
je 0x1015732e
cmp dword [esp + 0x88], 0
je 0x10157318
lea eax, [esp + 0x88]
push eax
push dword [edi + 8]
call fcn.100f5d40
mov esi, eax
add esp, 8
test esi, esi
jne 0x101571ca
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x101571a6
mov ecx, 7
mov dword [esp + 0x14], ecx
jmp 0x101571aa
mov eax, dword [esp + 0x14]
test esi, esi
jne 0x101573dd
cmp eax, 0xf
je 0x101573dd
mov esi, dword [ebx + 0x3c]
mov ecx, dword [edx + 0x48]
cmp esi, ecx
jae 0x101573bb
mov eax, dword [edx + 0x4c]
cmp ecx, eax
jbe 0x10157365
cmp esi, eax
jbe 0x101573bb
mov ecx, esi
sub ecx, eax
mov eax, dword [edx + 0x48]
sub eax, esi
cmp ecx, eax
jbe 0x101573b8
mov eax, dword [esp + 0x14]
cmp eax, 0x1c
je 0x10157377
cmp eax, 0xa
jne 0x1015775a
cmp dword [esp + 0x78], 0
je 0x10157398
lea eax, [esp + 0x78]
push eax
push dword [edi + 8]
call fcn.100f5d40
mov esi, eax
add esp, 8
test esi, esi
jne 0x101571ca
movups xmm0, xmmword [esp + 0x88]
lea eax, [ebx + 0x28]
xor ebp, ebp
movups xmmword [eax], xmm0
mov dword [esp + 0x88], 0
jmp 0x10157521
mov ecx, dword [edx + 0x48]
mov eax, dword [edx + 0x4c]
cmp esi, eax
jb 0x101573dd
cmp ecx, eax
jbe 0x1015775a
cmp esi, ecx
jae 0x101573dd
mov eax, esi
sub ecx, esi
sub eax, dword [edx + 0x4c]
cmp eax, ecx
jb 0x1015775a
cmp dword [esp + 0x78], 0
je 0x10157402
lea eax, [esp + 0x78]
push eax
push dword [edi + 8]
call fcn.100f5d40
mov esi, eax
add esp, 8
test esi, esi
jne 0x101571ca
mov edx, dword [esp + 0x10]
push dword [edi + 0x14]
xor ebp, ebp
push edx
push dword [edi + 0xc]
push dword [esp + 0x24]
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x101571ca
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x58]
push eax
push 0
lea eax, [ebx + 0x3c]
push eax
push edi
call fcn.10156550
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10157ac8
movups xmm0, xmmword [esp + 0x88]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x40]
movups xmmword [ebx + 0x28], xmm0
mov dword [ebx + 0x38], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x88], esi
cmp dword [esp + 0x58], esi
je 0x10157505
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x2e0]
test eax, 0x400
je 0x10157484
lea edx, [esi + 0x40]
jmp 0x10157493
test al, 1
mov edx, 0x1c
mov eax, 0x30
cmovne edx, eax
mov eax, dword [ecx + 0x138]
mov ecx, dword [eax + 0xc]
movzx eax, word [ebx + 0x18]
add ecx, 4
and ecx, 0xfffffffc
imul ecx, eax
mov eax, dword [esp + 0x14]
add ecx, edx
add ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
cmp eax, 8
je 0x101574c5
cmp eax, 0xa
jne 0x10157799
lea eax, [ecx + 1]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x30]
call fcn.101420f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10157799
cmp dword [esp + 0x14], 0xa
jne 0x1015778b
mov eax, dword [esp + 0x54]
xor ebp, ebp
test eax, eax
je 0x1015751e
push ebp
push dword [edi + 0x14]
push 1
push eax
push dword [ebx + 0x14]
push edi
call fcn.1010b6f0
add esp, 0x18
lea eax, [ebx + 0x28]
cmp dword [ebx + 0x28], 0
mov dword [ebx + 8], 0
je 0x10157553
cmp dword [esp + 0x30], 4
push eax
jne 0x10157540
push dword [edi + 8]
call fcn.100f5d40
jmp 0x10157546
push edi
call fcn.101597e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10157790
lea eax, [esp + 0x78]
push eax
push 0
push dword [esp + 0x40]
push dword [esp + 0x28]
push 0
push edi
call fcn.101594c0
mov edx, dword [esp + 0x28]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157a94
lea ebp, [eax + 1]
test edx, edx
jne 0x101575ad
lea eax, [esp + 0x10]
push eax
push edx
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff6
cmp eax, 0x12
ja case.0x101575c4.11
movzx eax, byte [eax + 0x10157b9c]
jmp dword [eax*4 + 0x10157b8c]
mov esi, dword [esp + 0x2c]
xor eax, eax
cmp dword [esp + 0x30], 4
mov ecx, dword [edx + 0x48]
cmovne esi, eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x2c], esi
cmp eax, ecx
jae 0x101576f3
mov esi, dword [edx + 0x4c]
cmp ecx, esi
jbe 0x10157607
cmp eax, esi
jbe 0x101576f3
sub ecx, dword [ebx + 0x3c]
sub eax, esi
cmp eax, ecx
jbe 0x101576f3
cmp dword [edi + 0x10], 0
je 0x101576c7
test dword [edi + 0x13c], 0x1800
je 0x101576f3
mov ecx, 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
jmp 0x101571aa
mov esi, dword [ebx + 0x3c]
mov eax, dword [edx + 0x4c]
cmp esi, eax
jb 0x1015767f
mov ecx, dword [edx + 0x48]
cmp ecx, eax
jbe 0x10157657
cmp esi, ecx
jae 0x1015767f
mov eax, esi
sub ecx, esi
sub eax, dword [edx + 0x4c]
cmp eax, ecx
jae 0x1015767f
cmp dword [edi + 0x10], 0
je 0x10157669
test dword [edi + 0x13c], 0x1800
je 0x1015767f
mov ecx, 0xf
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
jmp 0x101571aa
mov ecx, 0x18
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
jmp 0x101571aa
mov esi, dword [ebx + 0x3c]
mov ecx, dword [edx + 0x48]
cmp esi, ecx
jae 0x101576dd
mov eax, dword [edx + 0x4c]
cmp ecx, eax
jbe 0x101576b5
cmp esi, eax
jbe 0x101576dd
mov eax, esi
sub ecx, esi
sub eax, dword [edx + 0x4c]
cmp eax, ecx
jbe 0x101576dd
cmp dword [edi + 0x10], 0
je 0x101576c7
test dword [edi + 0x13c], 0x1800
je 0x101576dd
mov ecx, 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
jmp 0x101571aa
mov ecx, 0x10
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
jmp 0x101571aa
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], 0
jmp 0x101571aa
mov ebp, 1
jmp 0x101571ca
cmp esi, 0xffff86ee
jne 0x101571ca
mov esi, 0xffff86ef
jmp 0x101571ca
mov esi, 0xffff86f4
mov ebp, 1
jmp 0x101571ce
mov ecx, str.illegal_record_number_of_0
jmp 0x1015773f
mov ecx, str.illegal_record_number_size
mov eax, dword [esp + 0x28]
mov esi, 0x16
push ecx
mov eax, dword [eax + 0x1c]
push eax
call fcn.100d0920
add esp, 8
jmp 0x101571ca
mov esi, 0xffff86f4
jmp 0x10157765
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x88], 0
je 0x101571ce
lea eax, [esp + 0x88]
push eax
push dword [edi + 8]
call fcn.100f5d40
add esp, 8
jmp 0x101571ca
mov esi, 0xffff86f4
mov edx, dword [esp + 0x10]
jmp 0x10157a94
mov edx, dword [esp + 0x44]
test edx, edx
je 0x101577d3
test byte [edx + 0x18], 8
jne 0x101577d3
mov ecx, dword [edi + 0x24]
lea eax, [ecx + 8]
push eax
push ecx
push 4
lea eax, [ebx + 0x3c]
push eax
mov eax, dword [esp + 0x38]
push edx
push dword [eax + 0x1c]
call fcn.10142360
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov eax, dword [esp + 0x44]
or dword [eax + 0x18], 8
mov edx, dword [esp + 0x48]
test edx, edx
je 0x10157821
test byte [edi + 0x13c], 0xc0
jne 0x10157821
test byte [edx + 0x18], 8
jne 0x10157821
mov ecx, dword [edi + 0x28]
lea eax, [ecx + 8]
push eax
mov eax, dword [esp + 0x54]
push ecx
push dword [eax + 0xc]
mov eax, dword [esp + 0x30]
inc eax
push eax
mov eax, dword [esp + 0x38]
push edx
push dword [eax + 0x1c]
call fcn.10142360
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov eax, dword [esp + 0x48]
or dword [eax + 0x18], 8
cmp dword [esp + 0x30], 4
jne 0x10157790
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x104], 0
je 0x101578ff
push 0x17
lea eax, [esp + 0x50]
push eax
push edi
call fcn.10103a50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10157790
push eax
push dword [edi + 0x14]
push 1
push dword [ebx + 8]
push dword [ebx + 0x14]
push edi
call fcn.1010b6f0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1015789e
push dword [edi + 0x14]
push eax
push dword [edi + 0xc]
push dword [esp + 0x24]
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10157790
push dword [esp + 0x4c]
mov dword [esp + 0x14], 0
call fcn.101031c0
add esp, 4
mov esi, eax
push dword [esp + 0x4c]
test esi, esi
je 0x101578cd
call fcn.10102280
mov edx, dword [esp + 0x14]
add esp, 4
jmp 0x10157a94
call fcn.10102280
mov esi, eax
add esp, 4
test esi, esi
jne 0x10157790
push 2
push eax
push eax
lea eax, [ebx + 8]
push eax
push dword [ebx + 0x14]
push edi
call fcn.1010b6f0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101571ca
jmp 0x10157920
push 0
push dword [edi + 0x14]
lea eax, [ebx + 8]
push 2
push eax
push dword [ebx + 0x14]
push edi
call fcn.1010b6f0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov edx, dword [edi + 0x10]
mov ecx, dword [ebx + 8]
test edx, edx
je 0x101579dd
mov eax, dword [edi + 8]
cmp dword [eax + 0x74], 0
je 0x101579dd
test dword [edi + 0x13c], 0x2000
jne 0x101579dd
mov eax, dword [eax + 0x80]
test eax, eax
je 0x10157965
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x10157965
test byte [eax + 0x31c], 8
jne 0x101579dd
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x14], 0
je 0x101579b5
cmp dword [esi + 0xc], 0
je 0x101579b5
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push dword [ebx + 0x3c]
movzx eax, word [ebx + 0x18]
push eax
push dword [ecx + 8]
push ecx
push 0
push ecx
push edx
push dword [esp + 0x48]
call fcn.1019fd00
mov esi, eax
add esp, 0x24
test esi, esi
je 0x101579ea
mov edx, dword [esp + 0x10]
jmp 0x10157a94
push dword [ebx + 0x3c]
movzx eax, word [ebx + 0x18]
push eax
push dword [ecx + 8]
push ecx
push 0
push ecx
push edx
push dword [esp + 0x44]
call fcn.1019f8b0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10157790
jmp 0x101579ea
mov dword [ecx], 0
mov dword [ecx + 4], 1
mov eax, dword [esp + 0x24]
push 0
and byte [eax], 0xfe
push dword [edi + 0x14]
push 1
push dword [ebx + 8]
push dword [ebx + 0x14]
push edi
call fcn.1010b6f0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101571ca
mov dword [ebx + 8], eax
lea eax, [esp + 0x78]
push eax
push esi
push dword [esp + 0x40]
push dword [esp + 0x28]
push esi
push edi
call fcn.101594c0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov edx, dword [esp + 0x10]
lea ebp, [eax + 1]
test edx, edx
jne 0x10157a6c
lea eax, [esp + 0x10]
push eax
push edx
push dword [edi + 0x10]
lea eax, [esp + 0x28]
push dword [edi + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10157790
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10157a77
mov eax, dword [ebx + 0x3c]
cmp eax, dword [edx + 0x48]
jne 0x10157a94
push eax
push edx
push edi
call fcn.10155d00
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov esi, eax
jmp 0x10157a94
mov esi, 0xffff86ec
mov eax, dword [ebx + 8]
test eax, eax
je 0x101571ce
push 0
push dword [edi + 0x14]
push 1
push eax
push dword [ebx + 0x14]
push edi
call fcn.1010b6f0
add esp, 0x18
test eax, eax
je 0x10157abc
test esi, esi
cmove esi, eax
mov dword [ebx + 8], 0
jmp 0x101571ca
cmp dword [esp + 0x88], 0
je 0x101571ca
lea eax, [esp + 0x88]
push eax
push dword [edi + 8]
call fcn.100f5d40
add esp, 8
jmp 0x101571ca
mov esi, 0xffff86f4
jmp 0x101571ce
mov ebp, dword [esp + 0x20]
cmp esi, 0xffff86ef
jne 0x10157b18
mov eax, dword [ebp]
test dword [eax + 0x114], 0x2000
jne 0x10157b18
mov esi, 0xffff86ee
mov eax, esi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1021eb98
add esp, 0x8c
ret