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

Disassembly:
sub esp, 0x238
xor ecx, ecx
xor eax, eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb4], ecx
push ebx
mov dword [esp + 0xbc], ecx
push ebp
mov ebp, dword [esp + 0x248]
mov dword [esp + 0xa8], eax
mov dword [esp + 0x70], ecx
push esi
push edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x7c], ecx
xor edx, edx
mov dword [esp + 0x88], eax
mov ecx, 0xc
lea edi, [esp + 0x114]
mov dword [esp + 0x98], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x9c], edx
rep stosd dword es:[edi], eax
mov ax, word [ebp]
mov dword [esp + 0xa0], edx
shr ax, 1
and eax, 0xffff
mov dword [esp + 0xa4], edx
xor bl, bl
mov dword [esp + 0x80], edx
shl eax, 1
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x84], edx
mov byte [esp + 0x2c], bl
mov edi, eax
push edi
call fcn.10034761
mov esi, dword [esp + 0x30]
add esp, 4
and esi, 0xff
shl esi, 2
test eax, eax
mov dword [esp + esi + 0x98], eax
je 0x10168bff
push edi
mov dword [esp + esi + 0x118], eax
call fcn.10034761
add esp, 4
mov dword [esp + esi + 0xa8], eax
test eax, eax
je 0x10168bff
push edi
mov dword [esp + esi + 0x128], eax
call fcn.10034761
add esp, 4
mov dword [esp + esi + 0xbc], eax
test eax, eax
je 0x10168bff
inc bl
mov dword [esp + esi + 0x134], eax
cmp bl, 4
mov byte [esp + 0x2c], bl
jb 0x10168983
mov edi, dword [esp + 0x24c]
mov cx, word [ebp]
mov word [esp + 0x90], 0
mov word [esp + 0x92], cx
mov dl, byte [edi + 0x77]
lea eax, [ecx + ecx]
cmp dl, 1
mov word [esp + 0x5e], ax
mov al, byte [edi + 7]
mov word [esp + 0x5c], cx
seta dl
inc edx
test al, 1
mov byte [esp + 0x12], dl
je 0x10168a6e
mov bx, word [edi + 0x20]
mov si, cx
shr si, 1
xor eax, eax
mov edi, 2
mov bp, word [esp + eax + 0x90]
add eax, 2
add bp, bx
add ebp, esi
dec edi
mov word [esp + eax + 0x5a], bp
jne 0x10168a48
mov ebp, dword [esp + 0x250]
mov edi, dword [esp + 0x24c]
cmp word [ebp + 4], 1
jne 0x10168a8b
mov ax, cx
shr ax, 1
mov word [esp + 0x5c], ax
mov eax, dword [esp + 0x5c]
add ecx, eax
mov word [esp + 0x5e], cx
mov byte [esp + 0x13], 0xff
xor eax, eax
xor cl, cl
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], eax
mov al, byte [edi + 9]
mov byte [esp + 0x44], cl
test al, al
jbe 0x101698eb
mov eax, dword [esp + 0x44]
and eax, 0xff
mov dword [esp + 0x4c], eax
mov bl, byte [eax + ebp + 0xc]
test bl, bl
je 0x101698c4
xor eax, eax
xor bx, bx
mov dword [esp + 0x88], eax
mov bl, cl
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
shl ebx, 0xe
xor ecx, ecx
mov dword [esp + 0x84], eax
test dl, dl
mov dword [esp + 0x14], ecx
mov byte [esp + 0x20], cl
jbe 0x10168fe3
mov eax, dword [esp + 0x20]
and eax, 0xff
mov dword [esp + 0x24], eax
mov bp, word [esp + eax*2 + 0x90]
mov ax, word [esp + eax*2 + 0x5c]
cmp bp, ax
mov dword [esp + 0x48], eax
jae 0x10168fc6
mov edx, dword [esp + 0x260]
mov eax, dword [esp + 0x38]
lea edx, [edx + eax*2]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x24c]
mov dl, byte [eax + 0x10b]
test dl, dl
jne 0x10169902
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x254]
mov dword [esp + 0x58], 0
mov si, word [edx + 2]
mov edx, ebp
and edx, 0xffff
add si, bp
shl eax, 0x10
mov dword [esp + 0x30], edx
add edx, eax
mov dword [esp + 0x50], 0
mov dl, byte [edx + edi]
mov edi, esi
and edi, 0xffff
mov byte [esp + 0x1b], dl
mov dword [esp + 0x94], edi
add eax, edi
mov edi, dword [esp + 0x254]
mov al, byte [eax + edi]
mov byte [esp + 0x11], al
mov al, dl
and al, 0x10
cmp al, 0x10
jne 0x10168bc2
mov dword [esp + 0x50], 1
mov al, byte [esp + 0x11]
mov dword [esp + 0x1c], 0
and al, 0x10
cmp al, 0x10
jne 0x10168bdc
mov dword [esp + 0x1c], 1
test dl, dl
jne 0x10168c0c
mov al, byte [esp + 0x11]
test al, al
jne 0x10168c0c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10168cd0
mov ecx, dword [esp + 0x258]
push ecx
push edi
jmp 0x10168c52
mov dword [esp + 0x3c], 0x1e
jmp 0x10169914
cmp dl, byte [esp + 0x13]
jae 0x10168c16
test dl, dl
jne 0x10168c8d
mov edi, dword [esp + 0x50]
test edi, edi
jne 0x10168c97
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x11]
cmp al, dl
jae 0x10168c2e
test al, al
jne 0x10168c93
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10168c93
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10168cc8
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x254]
push eax
push ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x254]
mov edx, ebp
or esi, ebx
or edx, ebx
push esi
push edx
push eax
push ecx
call fcn.10162090
mov edx, dword [esp + 0x268]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x34], 1
mov ax, word [edx + 4]
add ebp, eax
jmp 0x10168fbb
mov edi, dword [esp + 0x50]
jmp 0x10168c97
mov dl, byte [esp + 0x1b]
cmp dl, 0x80
jae 0x10168ca4
test dl, dl
jne 0x10168e30
test edi, edi
jne 0x10168de0
mov al, byte [esp + 0x11]
cmp al, 0x80
jae 0x10168cbc
test al, al
jne 0x10168de0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10168de0
mov dword [esp + 0x58], 1
mov ecx, ebp
lea edx, [esp + 0x60]
or ecx, ebx
push edx
mov dword [esp + 0x64], ecx
call sym.ITEuDllvMgr.dll_SwapWORD
mov edi, dword [esp + 0x2c]
or esi, ebx
mov word [edi], ax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], esi
call sym.ITEuDllvMgr.dll_SwapWORD
mov word [edi + 2], ax
mov al, byte [esp + 0x26c]
add esp, 8
test al, al
je 0x10168daf
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10168d67
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x94]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x34]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x20]
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x15c]
push str.VB_d___Ce_d__blk0x_lx_0x_lx___pairblk0x_lx_0x_lx____Retry_pair_n
push ecx
jmp 0x10168da7
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x94]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x34]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x15c]
push str.VB_d___Ce_d__blk0x_lx_0x_lx___pairblk0x_lx_0x_lx__n
push edx
call fcn.1003399c
add esp, 0x20
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x14]
add edi, 2
add esi, 4
mov dx, word [eax + 4]
inc ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], ecx
add ebp, edx
jmp 0x10168fbb
test dl, dl
jne 0x10168e30
mov edi, dword [esp + 0x24]
mov eax, ebp
lea ecx, [esp + 0x40]
or eax, ebx
push ecx
mov dword [esp + 0x44], eax
call sym.ITEuDllvMgr.dll_SwapWORD
mov cx, word [esp + edi*2 + 0x84]
mov edx, dword [esp + edi*4 + 0x9c]
and ecx, 0xffff
add esp, 4
mov word [edx + ecx*2], ax
mov ax, word [esp + edi*2 + 0x80]
mov ecx, dword [esp + 0x14]
inc eax
mov word [esp + edi*2 + 0x80], ax
jmp 0x10168ed0
test edi, edi
jne 0x10168ecc
cmp dl, byte [esp + 0x13]
jb 0x10168e87
mov edi, dword [esp + 0x24]
mov eax, ebp
lea ecx, [esp + 0x40]
or eax, ebx
push ecx
mov dword [esp + 0x44], eax
call sym.ITEuDllvMgr.dll_SwapWORD
mov cx, word [esp + edi*2 + 0x8c]
mov edx, dword [esp + edi*4 + 0xac]
and ecx, 0xffff
add esp, 4
mov word [edx + ecx*2], ax
mov ax, word [esp + edi*2 + 0x88]
mov ecx, dword [esp + 0x14]
inc eax
mov word [esp + edi*2 + 0x88], ax
jmp 0x10168ed0
cmp dl, 0x80
jb 0x10168ecc
mov edi, dword [esp + 0x24]
mov eax, ebp
lea ecx, [esp + 0x40]
or eax, ebx
push ecx
mov dword [esp + 0x44], eax
call sym.ITEuDllvMgr.dll_SwapWORD
mov cx, word [esp + edi*2 + 0x7c]
mov edx, dword [esp + edi*4 + 0xc0]
and ecx, 0xffff
add esp, 4
mov word [edx + ecx*2], ax
mov ax, word [esp + edi*2 + 0x78]
mov ecx, dword [esp + 0x14]
inc eax
mov word [esp + edi*2 + 0x78], ax
jmp 0x10168ed0
mov edi, dword [esp + 0x24]
mov al, byte [esp + 0x11]
test al, al
jne 0x10168f11
or esi, ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x40], esi
push eax
lea esi, [esp + edi*2 + 0x88]
call sym.ITEuDllvMgr.dll_SwapWORD
mov cx, word [esi]
mov edi, dword [esp + edi*4 + 0xa4]
mov edx, ecx
add esp, 4
and edx, 0xffff
inc ecx
mov word [esi], cx
mov word [edi + edx*2], ax
jmp 0x10168faa
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10168fae
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x11]
cmp dl, al
jb 0x10168f68
mov ecx, dword [esp + 0x24]
or esi, ebx
mov dword [esp + 0x40], esi
lea edx, [esp + 0x40]
mov di, word [esp + ecx*2 + 0x8c]
lea esi, [esp + ecx*2 + 0x8c]
push edx
call sym.ITEuDllvMgr.dll_SwapWORD
mov edx, dword [esp + 0x28]
mov ecx, edi
add esp, 4
and ecx, 0xffff
mov edx, dword [esp + edx*4 + 0xb0]
mov word [edx + ecx*2], ax
jmp 0x10168fa6
cmp byte [esp + 0x11], 0x80
jb 0x10168fae
mov eax, dword [esp + 0x24]
or esi, ebx
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov di, word [esp + eax*2 + 0x7c]
lea esi, [esp + eax*2 + 0x7c]
push ecx
call sym.ITEuDllvMgr.dll_SwapWORD
mov ecx, dword [esp + 0x28]
mov edx, edi
add esp, 4
and edx, 0xffff
mov ecx, dword [esp + ecx*4 + 0xc4]
mov word [ecx + edx*2], ax
inc edi
mov word [esi], di
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x250]
mov ax, word [edx + 4]
add ebp, eax
cmp bp, word [esp + 0x48]
jb 0x10168b3d
mov al, byte [esp + 0x20]
mov dl, byte [esp + 0x12]
inc al
cmp al, dl
mov byte [esp + 0x20], al
jb 0x10168b04
mov ebp, dword [esp + 0x250]
xor eax, eax
xor edx, edx
mov esi, 4
mov di, word [esp + eax + 0x80]
add edx, 4
mov word [esp + eax + 0xcc], di
mov di, word [esp + eax + 0x88]
mov word [esp + eax + 0xd4], di
mov di, word [esp + eax + 0x78]
mov word [esp + eax + 0xdc], di
mov edi, dword [esp + edx + 0x94]
mov dword [esp + edx + 0xe0], edi
mov edi, dword [esp + edx + 0xa4]
mov dword [esp + edx + 0xf0], edi
mov edi, dword [esp + edx + 0xb8]
mov dword [esp + edx + 0x100], edi
add eax, 2
dec esi
jne 0x10168fec
mov al, byte [ebp + 6]
test al, al
je 0x10169615
mov al, byte [esp + 0x12]
mov byte [esp + 0x20], 0
test al, al
jbe 0x10169237
mov dl, byte [esp + 0x20]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x2c], 0
and eax, 0xff
mov byte [esp + 0x11], 0
mov dword [esp + 0x24], eax
mov byte [esp + 0x6c], dl
jmp 0x1016908d
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x6c]
mov al, bl
and ebx, 0xff
add al, 2
mov esi, eax
mov bp, word [esp + ebx*2 + 0xcc]
and esi, 0xff
mov byte [esp + 0xb8], al
lea edx, [esp + ebx*2 + 0xcc]
mov dword [esp + 0x1c], ebp
lea eax, [esp + esi*2 + 0xcc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], eax
mov ax, word [eax]
cmp bp, ax
jb 0x101690d8
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x54]
and ecx, 0xffff
add ecx, edi
xor eax, eax
shl ecx, 1
mov edx, ecx
mov ecx, 0x41
lea edi, [esp + 0x144]
mov dword [esp + 0x38], edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
and ecx, 0xff
and edi, 0xffff
push ecx
mov ecx, dword [esp + 0x28]
push edi
push eax
push edx
push ecx
lea edx, [esp + 0x158]
push str._Die_d_:__CrossRaw2___VB_Offset_position_d_Ce_d__Num_d_Idx_d__n
push edx
call fcn.1003399c
mov ecx, dword [esp + 0x50]
add esp, 0x1c
xor eax, eax
test ecx, ecx
jne 0x1016915d
cmp word [esp + 0x1c], ax
je 0x1016915d
cmp byte [esp + 0x6c], 8
jae 0x1016915d
cmp byte [esp + 0xb8], 8
jae 0x1016915d
mov eax, 1
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x24c]
mov dl, byte [ecx + 0x10b]
test dl, dl
jne 0x10169902
mov edx, dword [esp + 0x264]
mov ecx, dword [esp + ebx*4 + 0xe4]
and edx, 0xff
lea esi, [esp + esi*4 + 0xe4]
push edx
mov edx, dword [esp + 0x25c]
push eax
mov eax, dword [esp + 0x254]
push eax
mov eax, dword [esp + 0x260]
push edx
mov edx, dword [esp + 0x270]
push eax
lea ebx, [esp + ebx*4 + 0xf8]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x54]
push 2
push edx
push ecx
mov ecx, dword [esp + 0x6c]
push edi
push eax
push ecx
call fcn.10169960
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x64]
sub ebp, eax
mov word [edx], bp
add edi, edi
sub word [ecx], ax
mov eax, dword [ebx]
add eax, edi
add esp, 0x34
mov dword [ebx], eax
mov al, byte [esp + 0x2c]
mov ecx, dword [esi]
mov bl, byte [esp + 0x6c]
add al, 4
add ecx, edi
mov byte [esp + 0x2c], al
mov al, byte [esp + 0x11]
add bl, 4
inc al
cmp al, 3
mov dword [esi], ecx
mov byte [esp + 0x6c], bl
mov byte [esp + 0x11], al
jb 0x10169089
mov dl, byte [esp + 0x20]
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x14]
inc dl
cmp dl, al
mov byte [esp + 0x20], dl
jb 0x1016906c
mov al, byte [esp + 0x12]
mov byte [esp + 0x20], 0
test al, al
jbe 0x10169426
mov dl, byte [esp + 0x20]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x2c], 0
and eax, 0xff
mov byte [esp + 0x11], 0
mov dword [esp + 0x24], eax
mov byte [esp + 0x74], dl
jmp 0x1016926d
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
and esi, 0xff
mov edi, 0xc
lea eax, [edx + esi + 6]
cdq
idiv edi
mov eax, dword [esp + 0x74]
and eax, 0xff
mov dword [esp + 0x48], eax
mov bp, word [esp + eax*2 + 0xcc]
lea eax, [esp + eax*2 + 0xcc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x68], dl
mov ebx, dword [esp + 0x68]
and ebx, 0xff
mov ax, word [esp + ebx*2 + 0xcc]
lea edx, [esp + ebx*2 + 0xcc]
cmp bp, ax
mov dword [esp + 0x28], edx
jb 0x101692d5
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x54]
and ecx, 0xffff
add ecx, edi
xor eax, eax
shl ecx, 1
mov edx, ecx
mov ecx, 0x41
lea edi, [esp + 0x144]
push esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
and edi, 0xffff
push edi
push eax
mov dword [esp + 0x44], edx
push edx
push ecx
lea edx, [esp + 0x158]
push str._Die_d_:__CrossRaw6___VB_Offset_position_d_Ce_d__Num_d_Idx_d__n
push edx
call fcn.1003399c
mov ecx, dword [esp + 0x50]
add esp, 0x1c
xor eax, eax
test ecx, ecx
jne 0x1016934d
cmp word [esp + 0x1c], ax
je 0x1016934d
cmp byte [esp + 0x74], 8
jae 0x1016934d
cmp byte [esp + 0x68], 8
jae 0x1016934d
mov eax, 1
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x24c]
mov dl, byte [ecx + 0x10b]
test dl, dl
jne 0x10169902
mov edx, dword [esp + 0x48]
lea esi, [esp + ebx*4 + 0xe4]
lea ebx, [esp + edx*4 + 0xe4]
mov edx, dword [esp + 0x264]
and edx, 0xff
push edx
mov edx, dword [esp + 0x25c]
push eax
mov eax, dword [esp + 0x254]
mov ecx, dword [ebx]
push eax
mov eax, dword [esp + 0x260]
push edx
mov edx, dword [esp + 0x270]
push eax
lea eax, [esp + 0x28]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x54]
push 2
push edx
push ecx
mov ecx, dword [esp + 0x6c]
push edi
push eax
push ecx
call fcn.10169960
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
sub ebp, eax
mov word [edx], bp
add edi, edi
sub word [ecx], ax
mov eax, dword [ebx]
add eax, edi
add esp, 0x34
mov dword [ebx], eax
mov al, byte [esp + 0x2c]
mov ecx, dword [esi]
mov bl, byte [esp + 0x74]
add al, 4
add ecx, edi
mov byte [esp + 0x2c], al
mov al, byte [esp + 0x11]
add bl, 4
inc al
cmp al, 3
mov dword [esi], ecx
mov byte [esp + 0x74], bl
mov byte [esp + 0x11], al
jb 0x10169269
mov dl, byte [esp + 0x20]
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x14]
inc dl
cmp dl, al
mov byte [esp + 0x20], dl
jb 0x1016924c
mov al, byte [esp + 0x12]
mov byte [esp + 0x20], 0
test al, al
jbe 0x10169615
mov dl, byte [esp + 0x20]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x2c], 0
and eax, 0xff
mov byte [esp + 0x11], 0
mov dword [esp + 0x24], eax
mov byte [esp + 0x70], dl
jmp 0x1016945c
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
and esi, 0xff
mov edi, 0xc
lea eax, [edx + esi + 0xa]
cdq
idiv edi
mov eax, dword [esp + 0x70]
and eax, 0xff
mov dword [esp + 0x48], eax
mov bp, word [esp + eax*2 + 0xcc]
lea eax, [esp + eax*2 + 0xcc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x68], dl
mov ebx, dword [esp + 0x68]
and ebx, 0xff
mov ax, word [esp + ebx*2 + 0xcc]
lea edx, [esp + ebx*2 + 0xcc]
cmp bp, ax
mov dword [esp + 0x28], edx
jb 0x101694c4
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x54]
and ecx, 0xffff
add ecx, edi
xor eax, eax
shl ecx, 1
mov edx, ecx
mov ecx, 0x41
lea edi, [esp + 0x144]
push esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
and edi, 0xffff
push edi
push eax
mov dword [esp + 0x44], edx
push edx
push ecx
lea edx, [esp + 0x158]
push str._Die_d_:__CrossRaw10___VB_Offset_position_d_Ce_d__Num_d_Idx_d__n
push edx
call fcn.1003399c
mov ecx, dword [esp + 0x50]
add esp, 0x1c
xor eax, eax
test ecx, ecx
jne 0x1016953c
cmp word [esp + 0x1c], ax
je 0x1016953c
cmp byte [esp + 0x70], 8
jae 0x1016953c
cmp byte [esp + 0x68], 8
jae 0x1016953c
mov eax, 1
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x24c]
mov dl, byte [ecx + 0x10b]
test dl, dl
jne 0x10169902
mov edx, dword [esp + 0x48]
lea esi, [esp + ebx*4 + 0xe4]
lea ebx, [esp + edx*4 + 0xe4]
mov edx, dword [esp + 0x264]
and edx, 0xff
push edx
mov edx, dword [esp + 0x25c]
push eax
mov eax, dword [esp + 0x254]
mov ecx, dword [ebx]
push eax
mov eax, dword [esp + 0x260]
push edx
mov edx, dword [esp + 0x270]
push eax
lea eax, [esp + 0x28]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x54]
push 2
push edx
push ecx
mov ecx, dword [esp + 0x6c]
push edi
push eax
push ecx
call fcn.10169960
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
sub ebp, eax
mov word [edx], bp
add edi, edi
sub word [ecx], ax
mov eax, dword [ebx]
add eax, edi
add esp, 0x34
mov dword [ebx], eax
mov al, byte [esp + 0x2c]
mov ecx, dword [esi]
mov bl, byte [esp + 0x70]
add al, 4
add ecx, edi
mov byte [esp + 0x2c], al
mov al, byte [esp + 0x11]
add bl, 4
inc al
cmp al, 3
mov dword [esi], ecx
mov byte [esp + 0x70], bl
mov byte [esp + 0x11], al
jb 0x10169458
mov dl, byte [esp + 0x20]
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x14]
inc dl
cmp dl, al
mov byte [esp + 0x20], dl
jb 0x1016943b
mov edx, dword [esp + 0x24c]
cmp byte [edx + 0xf], 1
jne 0x1016989e
mov edx, dword [esp + 0x54]
and ecx, 0xffff
add ecx, edx
lea eax, [esp + 0xcc]
shl ecx, 1
mov dword [esp + 0x38], ecx
xor ebx, ebx
mov ecx, 0xc
mov dx, word [eax]
add eax, 2
add ebx, edx
dec ecx
jne 0x10169646
mov eax, ebx
mov dword [esp + 0x58], ebx
and eax, 0xffff
shl eax, 1
push eax
call fcn.10034761
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
je 0x10168bff
lea ecx, [esp + 0xcc]
xor esi, esi
mov dword [esp + 0x28], ecx
lea edi, [esp + 0xe4]
mov dword [esp + 0x30], 0xc
mov edx, dword [esp + 0x28]
mov dx, word [edx]
test dx, dx
jbe 0x101696bd
mov ecx, dword [edi]
and edx, 0xffff
mov bp, word [ecx]
mov ebx, esi
and ebx, 0xffff
inc esi
add ecx, 2
dec edx
mov word [eax + ebx*2], bp
jne 0x101696a3
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add edi, 4
add edx, 2
dec ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
jne 0x1016968f
shr bx, 1
shl ebx, 1
test bx, bx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], 0
jbe 0x10169891
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x38]
lea edx, [eax + ecx*2]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x24c]
mov cl, byte [eax + 0x10b]
test cl, cl
jne 0x10169902
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
and edi, 0xffff
lea ebx, [ecx + edi*2]
push ebx
call sym.ITEuDllvMgr.dll_SwapWORD
mov esi, dword [esp + 0x50]
mov dword [esp + 0x64], eax
and eax, 0x3fff
mov ebp, eax
mov eax, dword [esp + 0x258]
shl esi, 0x10
and ebp, 0xffff
lea edx, [esi + ebp]
mov cl, byte [edx + eax]
mov edx, dword [esp + 0x54]
mov byte [esp + 0x1f], cl
lea edi, [edx + edi*2 + 2]
push edi
mov dword [esp + 0x50], edi
call sym.ITEuDllvMgr.dll_SwapWORD
mov edi, eax
mov ecx, dword [esp + 0x25c]
mov edx, edi
mov dword [esp + 0x6c], edi
and edx, 0x3fff
add esp, 8
and edx, 0xffff
lea eax, [edx + esi]
mov al, byte [eax + ecx]
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov byte [esp + 0x11], al
jne 0x101697ef
mov cl, byte [esp + 0x1b]
test cl, cl
je 0x101697ad
mov al, byte [esp + 0x13]
cmp cl, al
jb 0x101697ef
mov al, byte [esp + 0x11]
test al, al
je 0x101697b7
cmp al, byte [esp + 0x13]
jb 0x101697ef
mov ecx, dword [esp + 0x258]
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x254]
push edi
push eax
push ecx
push edx
call fcn.10162090
add esp, 0x18
mov dword [esp + 0x34], 1
jmp 0x10169877
mov esi, dword [esp + 0x30]
mov ax, word [ebx]
mov ecx, dword [esp + 0x48]
mov word [esi], ax
mov ax, word [ecx]
mov word [esi + 2], ax
mov al, byte [esp + 0x264]
test al, al
je 0x1016985c
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x4c]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x68]
and edx, 0xffff
and ecx, 0xffff
push edx
push ebp
push eax
push ecx
lea edx, [esp + 0x15c]
push str._One_Plane_:_VB_d___Ce_d__blk0x_lx_0x_lx___pairblk0x_lx_0x_lx__n
push edx
call fcn.1003399c
add esp, 0x20
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
add edx, 2
add esi, 4
inc eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
add eax, 2
cmp ax, word [esp + 0x58]
mov dword [esp + 0x28], eax
jb 0x10169702
mov eax, dword [esp + 0x50]
push eax
call fcn.10034678
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x54]
mov dl, byte [esp + 0x12]
mov ebp, dword [esp + 0x250]
mov edi, dword [esp + 0x24c]
and ecx, 0xffff
add eax, ecx
mov cl, byte [esp + 0x44]
mov dword [esp + 0x54], eax
mov al, byte [edi + 9]
inc cl
cmp cl, al
mov byte [esp + 0x44], cl
jb 0x10168aab
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10169914
mov ebp, dword [esp + 0x250]
mov edi, dword [esp + 0x24c]
mov al, byte [ebp + 0x496]
mov cl, byte [esp + 0x13]
cmp cl, al
je 0x1016990c
mov byte [esp + 0x13], al
jmp 0x10168a90
mov dword [esp + 0x3c], 0x36
jmp 0x10169914
mov dword [esp + 0x3c], 0x24
lea esi, [esp + 0x114]
mov edi, 0xc
mov eax, dword [esi]
test eax, eax
je 0x1016992f
push eax
call fcn.10034678
add esp, 4
add esi, 4
dec edi
jne 0x10169920
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
pop ebp
pop ebx
add esp, 0x238
ret