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

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
push esi
xor eax, eax
push edi
xor ebp, ebp
xor edi, edi
cmp edx, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
jbe 0x10111c75
mov esi, dword [ecx + 8]
test esi, esi
je 0x10111c62
cmp eax, edx
jae 0x10111c62
mov ecx, dword [esi + eax*4]
jmp 0x10111c64
xor ecx, ecx
cmp ebp, ecx
jae 0x10111c6a
mov ebp, ecx
add eax, 1
cmp eax, edx
jb 0x10111c55
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0xc]
xor ecx, ecx
test edx, edx
jbe 0x10111ca7
mov esi, dword [eax + 8]
test esi, esi
je 0x10111c92
cmp ecx, edx
jae 0x10111c92
mov eax, dword [esi + ecx*4]
jmp 0x10111c94
xor eax, eax
xor edi, edi
cmp edi, eax
sbb edi, edi
and edi, eax
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x2c], edi
jb 0x10111c85
mov ecx, dword [ebx + 0x30]
lea eax, [ebx + 0x24]
cmp ecx, eax
mov dword [esp + 0x7c], ecx
je 0x10111e80
mov dword [esp + 0x38], 1
jmp 0x10111cd0
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
jmp 0x10111cd0
cmp dword [esp + 0x38], 0
je 0x10111e80
mov esi, dword [ecx + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test al, al
je 0x10111e66
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
test al, al
je 0x10111d0a
cmp byte [esp + 0x88], 0
je 0x10111e66
mov ebp, edi
jmp 0x10111d18
cmp byte [esp + 0x84], 0
je 0x10111e66
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.10124b30
add esp, 8
mov dword [esp + 0x18], eax
and eax, 1
mov dword [esp + 0x38], eax
je 0x10111e66
mov ecx, dword [esp + 0x24]
call fcn.10124a00
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x48]
test al, al
push edi
je 0x10111d7d
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x54]
add eax, eax
add eax, eax
mov edx, dword [ecx + eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x50]
mov eax, dword [edx + eax + 4]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + eax*4]
push edx
push ebp
mov ecx, esi
call fcn.1017e320
jmp 0x10111d85
push ebp
mov ecx, esi
call fcn.1017e2c0
mov eax, dword [esp + 0x70]
mov ebx, dword [eax + 0x14]
add eax, 8
cmp ebx, eax
mov byte [esp + 0x78], 0
je 0x10111e37
lea esp, [esp]
cmp byte [esp + 0x78], 0
jne 0x10111e19
mov ecx, dword [ebx + 8]
call fcn.10124a00
mov esi, eax
push esi
mov ecx, edi
call fcn.10124a10
test al, al
je 0x10111e0b
xor ecx, ecx
test ebp, ebp
mov byte [esp + 0x78], 1
jbe 0x10111df6
jmp 0x10111dd0
mov eax, 1
shl eax, cl
test dword [edi + 0xc], eax
je 0x10111def
mov edx, dword [esi + 0x18]
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x10111dec
mov byte [esi + 0x1c], 0
add dword [eax], 1
add ecx, 1
cmp ecx, ebp
jb 0x10111dd0
mov eax, dword [edi + 0xc]
or dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov ecx, dword [edi + 4]
cmp eax, ecx
jl 0x10111e08
mov eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x70]
mov ebx, dword [ebx + 0xc]
add eax, 8
cmp ebx, eax
jne 0x10111da0
cmp byte [esp + 0x78], 1
jne 0x10111e37
lea ecx, [esp + 0x24]
push ecx
call fcn.10124a90
add esp, 4
mov dword [esp + 0x24], 0
jmp 0x10111e66
mov ecx, dword [esp + 0x70]
mov esi, dword [ecx + 0x14]
lea edx, [esp + 0x24]
push edx
call fcn.10119be0
test eax, eax
je 0x10111e66
mov dword [eax + 0xc], esi
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov dword [ecx + 0xc], eax
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x70]
add dword [eax + 0x1c], 1
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [edx + 0xc]
lea eax, [ebx + 0x24]
cmp ecx, eax
mov dword [esp + 0x7c], ecx
jne 0x10111cc3
mov ecx, dword [ebx + 0x30]
cmp ecx, eax
mov dword [esp + 0x7c], ecx
jne 0x10111ea3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x48
ret 0x30
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
test dl, 1
je 0x10111e8f
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
mov dword [esp + 0x14], ecx
call dword [eax + 0x44]
test al, al
je 0x10112738
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x48]
test al, al
je 0x10111ee5
cmp byte [esp + 0x88], 0
je 0x10112738
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x78], ebx
jmp 0x10111efd
cmp byte [esp + 0x84], 0
je 0x10112738
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov ebx, eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call fcn.10124b30
add esp, 8
test al, 1
mov dword [esp + 0x18], eax
je 0x10112738
mov ecx, dword [esp + 0x3c]
call fcn.10124a00
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
mov edi, eax
mov ecx, esi
mov dword [esp + 0x38], edi
call dword [edx + 0x48]
test al, al
push edi
je 0x10111f65
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x54]
add eax, eax
add eax, eax
mov edx, dword [ecx + eax + 4]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x50]
mov eax, dword [edx + eax + 4]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + eax*4]
push edx
push ebx
mov ecx, esi
call fcn.1017e320
jmp 0x10111f6d
push ebx
mov ecx, esi
call fcn.1017e2c0
mov edi, dword [esp + 0x74]
mov esi, dword [edi + 0x14]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.10119be0
test eax, eax
je 0x10111f9a
mov dword [eax + 0xc], esi
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov dword [ecx + 0xc], eax
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x10], eax
add dword [edi + 0x1c], 1
mov edi, dword [esp + 0x70]
mov esi, dword [edi + 0x14]
xor ebp, ebp
add edi, 8
xor al, al
cmp esi, edi
mov dword [esp + 0x20], ebp
je 0x10112738
mov ebx, dword [esp + 0x38]
test al, al
jne 0x10111fd5
mov ecx, dword [esi + 8]
call fcn.10124a00
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.10124a10
mov esi, dword [esi + 0xc]
cmp esi, edi
jne 0x10111fb8
cmp al, 1
mov dword [esp + 0x20], ebp
jne 0x10112738
cmp byte [ebp + 0x1c], 0
jne 0x1011250e
mov ecx, dword [ebp + 0xc]
xor edx, edx
test al, cl
mov dword [esp + 0x44], edx
jne 0x10112006
shr ecx, 1
add edx, 1
test cl, 1
je 0x10111ff8
mov dword [esp + 0x44], edx
mov eax, dword [ebp + 8]
test eax, eax
jge 0x1011201b
imul eax, dword [esp + 0x78]
lea edx, [eax + edx + 1]
mov dword [ebp + 4], edx
jmp 0x10112025
imul eax, dword [esp + 0x78]
add eax, edx
mov dword [ebp + 4], eax
xor ebx, ebx
test ecx, ecx
je 0x10112037
jmp 0x10112030
add ebx, 1
shr ecx, 1
jne 0x10112030
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
jne 0x10112050
test bl, 1
je 0x1011204e
add ebx, 1
shr ebx, 1
cmp dword [esp + 0x60], 4
jne 0x10112059
add ebx, ebx
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x38]
cmp ecx, dword [edx + 4]
mov byte [esp + 0x78], 1
jne 0x10112100
cmp ebx, dword [esi + 0x18]
ja 0x10112100
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x78], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x7c], eax
call dword [edx + 0x2c]
test al, al
je 0x101120e3
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x18]
cmp edi, dword [esi + 0x14]
jne 0x101120e3
test edi, edi
mov dword [esp + 0x34], 0
jbe 0x101120d9
mov edx, dword [esi + 0x34]
mov ecx, eax
mov eax, dword [ecx + 0x68]
sub edx, eax
mov ecx, edi
mov ebp, dword [eax]
cmp ebp, dword [edx + eax]
jne 0x101120cd
add dword [esp + 0x34], 1
add eax, 4
sub ecx, 1
jne 0x101120c1
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jne 0x101120e3
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10112127
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov dword [ebp + 0x10], edx
jmp 0x1011213d
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0xb0]
mov ecx, dword [edx + 0xa0]
add ecx, eax
test ebx, ebx
mov dword [esp + 0x1c], ecx
jbe 0x10112122
add eax, ebx
mov dword [edx + 0xb0], eax
mov dword [ebp + 0x10], ecx
jmp 0x1011213d
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x5c]
mov ecx, dword [eax + 0x4c]
mov ecx, dword [edx + ecx*4]
mov edx, dword [eax + 0x68]
mov eax, dword [edx + ecx*4]
mov dword [ebp + 0x10], eax
cmp byte [esp + 0x78], 0
mov ecx, dword [esp + 0x44]
mov byte [ebp + 0x1c], 1
mov dword [ebp + 0x14], ecx
je 0x1011250e
cmp byte [ebp + 0x1d], 0
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x18], 0
push eax
jne 0x101122bc
push 4
call fcn.1017f130
add esp, 0x10
test al, 1
mov dword [esp + 0x18], eax
je 0x1011250e
xor eax, eax
test ebx, ebx
jbe 0x101121b3
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x4c]
mov edi, dword [ecx + 0x5c]
mov esi, dword [edi + esi*4]
mov ecx, dword [ecx + 0x68]
add esi, eax
add eax, 1
cmp eax, ebx
mov dword [ecx + esi*4], edx
jb 0x10112190
cmp dword [esp + 0x60], 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x44]
mov edx, dword [ecx + edx*4]
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x44]
mov edi, dword [eax + 0x50]
mov esi, dword [edi + esi*4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ecx + edx*4]
mov dword [eax + esi*4], ecx
mov esi, dword [esp + 0x14]
jne 0x1011220c
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x44]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edi*4]
mov edx, dword [esi + 0x34]
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 0x34]
mov ecx, dword [edx + ecx*4 + 4]
mov dword [edi + eax*4 + 4], ecx
mov edx, dword [ebp]
mov ecx, dword [esp + 0x10]
push edx
call fcn.1017e280
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp + 4]
mov dword [ecx], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
mov edx, dword [ecx + 0x30]
mov eax, dword [eax]
mov dword [edx], eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x50]
push edx
call fcn.1011db90
mov eax, dword [eax]
test al, 1
mov dword [esp + 0x18], eax
je 0x1011250e
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edi, dword [ecx + 0xc]
lea edx, [esp + 0x78]
add esi, 0x1c
push edx
mov ecx, esi
mov dword [esp + 0x7c], eax
mov ebp, 1
call fcn.10119b00
test eax, eax
je 0x101122a7
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x10]
mov dword [eax + 0x10], edi
mov dword [edi + 0xc], eax
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x10], eax
add dword [esi + 0x1c], ebp
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x7c], ecx
jmp 0x1011240f
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx + 0xc]
mov ebp, 8
mov dword [esp + 0x7c], ecx
jmp 0x1011240f
push 3
call fcn.1017f130
add esp, 0x10
test al, 1
mov dword [esp + 0x18], eax
je 0x1011250e
xor eax, eax
test ebx, ebx
jbe 0x10112303
jmp 0x101122e0
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x4c]
mov edi, dword [ecx + 0x5c]
mov esi, dword [edi + esi*4]
mov ecx, dword [ecx + 0x68]
add esi, eax
add eax, 1
cmp eax, ebx
mov dword [ecx + esi*4], edx
jb 0x101122e0
cmp dword [esp + 0x60], 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x44]
mov edx, dword [ecx + edx*4]
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x44]
mov edi, dword [eax + 0x50]
mov esi, dword [edi + esi*4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ecx + edx*4]
mov dword [eax + esi*4], ecx
jne 0x10112358
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x44]
mov edx, dword [ecx + edx*4]
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x44]
mov edi, dword [eax + 0x50]
mov esi, dword [edi + esi*4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ecx + edx*4 + 4]
mov dword [eax + esi*4 + 4], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x44]
mov edx, dword [ecx + edx*4 + 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp + 0x20]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x44]
mov ecx, dword [ebp + 0x24]
mov eax, dword [eax + 0x54]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [ebp]
mov ecx, dword [esp + 0x10]
push edx
call fcn.1017e280
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp + 4]
mov dword [ecx], edx
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x88]
call fcn.1011db90
mov eax, dword [eax]
test al, 1
mov dword [esp + 0x18], eax
je 0x1011250e
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
mov edi, dword [eax + 0xc]
lea ecx, [esp + 0x78]
add esi, 0x1c
push ecx
mov ecx, esi
mov dword [esp + 0x7c], edx
mov ebp, 1
call fcn.10119b00
test eax, eax
je 0x101123ff
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x10]
mov dword [eax + 0x10], edi
mov dword [edi + 0xc], eax
mov edx, dword [eax + 0xc]
mov dword [edx + 0x10], eax
add dword [esi + 0x1c], ebp
jmp 0x10112404
mov ebp, 8
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x7c], edx
mov eax, ebp
test al, 1
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], eax
je 0x1011250e
cmp ebx, 1
jbe 0x1011250e
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x24]
push eax
push 1
push ebx
push ecx
push 0x1a
mov dword [esp + 0x38], 0
call fcn.1017f680
add esp, 0x14
test al, 1
mov dword [esp + 0x18], eax
je 0x1011250e
xor eax, eax
test ebx, ebx
jbe 0x10112498
jmp 0x10112460
mov edx, dword [esp + 0x1c]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x24]
mov edi, dword [edx + 0x50]
mov esi, dword [edx + 0x44]
mov esi, dword [edi + esi*4]
mov edx, dword [edx + 0x34]
add esi, eax
mov dword [edx + esi*4], ecx
mov edx, dword [esp + 0x24]
mov esi, dword [edx + 0x4c]
mov edi, dword [edx + 0x5c]
mov edx, dword [edx + 0x68]
add esi, eax
mov esi, dword [edi + esi*4]
add eax, 1
cmp eax, ebx
mov dword [edx + esi*4], ecx
jb 0x10112460
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x88]
call fcn.1011db90
mov eax, dword [eax]
test al, 1
mov dword [esp + 0x18], eax
je 0x1011250e
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x7c]
mov edi, dword [eax + 0xc]
lea ecx, [esp + 0x78]
add esi, 0x1c
push ecx
mov ecx, esi
mov dword [esp + 0x7c], edx
mov ebx, 1
call fcn.10119b00
test eax, eax
je 0x101124fa
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x10]
mov dword [eax + 0x10], edi
mov dword [edi + 0xc], eax
mov edx, dword [eax + 0xc]
mov dword [edx + 0x10], eax
add dword [esi + 0x1c], ebx
jmp 0x101124ff
mov ebx, 8
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x7c], ecx
test byte [esp + 0x18], 1
je 0x10112738
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 0xc]
mov esi, dword [ebx + 8]
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x7c], ebx
call dword [eax + 0x2c]
test al, al
je 0x10112582
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x18]
cmp edi, dword [esi + 0x14]
jne 0x10112582
test edi, edi
mov dword [esp + 0x78], 0
jbe 0x10112578
mov edx, ecx
mov eax, dword [edx + 0x68]
mov edx, dword [esi + 0x34]
sub edx, eax
mov ecx, edi
mov edi, edi
mov ebx, dword [eax]
cmp ebx, dword [edx + eax]
jne 0x1011256c
add dword [esp + 0x78], 1
add eax, 4
sub ecx, 1
jne 0x10112560
mov ebx, dword [esp + 0x7c]
cmp dword [esp + 0x78], edi
jne 0x10112582
mov dword [esp + 0x44], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x14]
shr eax, cl
xor ebx, ebx
mov dword [esp + 0x78], ebx
test eax, eax
je 0x101125b1
add ebx, 1
test al, 1
jne 0x101125ad
shr eax, 1
jne 0x101125a2
mov dword [esp + 0x78], ebx
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
cmp dword [esp + 0x60], 4
jne 0x101125d7
test al, al
je 0x101125cd
lea eax, [esi + ebx*2 - 2]
jmp 0x101125e8
lea ecx, [esi + ebx - 1]
mov dword [esp + 0x1c], ecx
jmp 0x101125ec
test al, al
je 0x101125df
mov eax, ebx
jmp 0x101125e4
lea eax, [ebx + 1]
shr eax, 1
lea eax, [esi + eax - 1]
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp dword [edi + 0x18], ebx
jbe 0x10112738
mov ebp, dword [esp + 0x6c]
jmp 0x10112601
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10112611
mov ecx, dword [eax + 0x68]
mov esi, dword [ecx + ebx*4]
jmp 0x10112617
mov edx, dword [edi + 0x68]
mov esi, dword [edx + ebx*4]
cmp dword [esp + 0x60], 4
je 0x10112682
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test al, al
jne 0x10112682
test byte [esp + 0x78], 1
je 0x10112652
cmp esi, dword [ebp + 0xc]
jb 0x10112645
lea ecx, [esi + 1]
push ecx
mov ecx, ebp
call fcn.100598b0
cmp esi, dword [ebp + 0xc]
jae 0x101126b2
mov edx, dword [ebp + 8]
mov eax, esi
shr eax, 5
lea eax, [edx + eax*4]
jmp 0x101126a2
cmp esi, dword [ebp + 0xc]
jb 0x10112667
lea eax, [esi + 1]
push eax
mov ecx, ebp
call fcn.100598b0
cmp esi, dword [ebp + 0xc]
jae 0x101126b2
mov ecx, dword [ebp + 8]
mov eax, esi
shr eax, 5
lea eax, [ecx + eax*4]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
or dword [eax], edx
jmp 0x101126b2
cmp esi, dword [ebp + 0xc]
jb 0x10112697
lea eax, [esi + 1]
mov ecx, ebp
push eax
call fcn.100598b0
cmp esi, dword [ebp + 0xc]
jae 0x101126b2
mov ecx, dword [ebp + 8]
mov eax, esi
shr eax, 5
lea eax, [ecx + eax*4]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
not edx
and dword [eax], edx
mov ecx, dword [esp + 0x64]
lea eax, [esi*8]
sub eax, esi
lea esi, [ecx + eax*8]
lea edx, [esi + 8]
cmp dword [esi + 0x14], edx
je 0x101126e4
mov eax, dword [esi + 0x14]
lea ecx, [esi + 8]
cmp eax, ecx
je 0x101126e4
lea edx, [esp + 0x40]
push edx
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.100a4850
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 0x14]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.10059710
test eax, eax
je 0x10112717
mov dword [eax + 0xc], edi
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x10], ecx
mov dword [ecx + 0xc], eax
mov edx, dword [eax + 0xc]
mov dword [edx + 0x10], eax
add dword [esi + 0x1c], 1
jmp 0x10112723
mov eax, dword [esp + 0x18]
and al, 0xfe
or al, 8
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
add dword [esp + 0x1c], 1
add ebx, 1
cmp ebx, dword [ecx + 0x18]
jb 0x101125fd
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0xc]
add eax, 0x24
cmp ecx, eax
mov dword [esp + 0x7c], ecx
jne 0x10111e9f
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x48
ret 0x30