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

Disassembly:
push 0x48
push 0x4780d8
call fcn.00475f6c
mov eax, edx
mov dword [ebp - 0x20], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], esi
mov ebx, dword [edi + 0x54]
add ebx, eax
mov dword [ebp - 0x50], ebx
je 0x41c216
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x41c216
lea eax, [ebp - 0x54]
push eax
push 0x64616568
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x54]
push eax
push 0x61656868
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x54]
push eax
push 0x61656876
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x44]
push eax
push 0x7078616d
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x30]
push eax
push 0x656d616e
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
push 0x322f534f
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
push eax
push 0x74736f70
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x24], esi
je 0x41c216
cmp dword [ebp - 0x38], esi
je 0x41c216
cmp dword [ebp - 0x44], esi
je 0x41c216
cmp dword [ebp - 0x2c], esi
je 0x41c216
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x41c216
test eax, eax
je 0x41c216
lea ebx, [edi + 0x70]
movzx ecx, byte [edx + 1]
mov ax, word [edx]
shl ax, 8
or cx, ax
push 2
pop eax
cmp cx, ax
jb 0x41c216
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
mov eax, ecx
sar eax, 0x18
movzx eax, al
mov dword [ebp - 0x40], eax
mov eax, ecx
sar eax, 0x10
shl eax, 8
movzx eax, ax
or dword [ebp - 0x40], eax
sar ecx, 8
movzx ecx, cl
mov eax, dword [ebp - 0x3c]
mov ax, word [eax]
shl ax, 8
movzx eax, ax
or ecx, eax
shl ecx, 0x10
mov eax, dword [ebp - 0x40]
or eax, ecx
cmp eax, 0x30000
jl 0x41c216
cmp eax, 0x3ffff
jg 0x41c216
lea eax, [edx + 0x3a]
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
bswap eax
cmp eax, 0x41444245
jne 0x41b505
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov eax, ecx
sar eax, 0x18
movzx edx, al
mov eax, ecx
sar eax, 0x10
shl eax, 8
movzx eax, ax
or edx, eax
sar ecx, 8
movzx ecx, cl
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 4]
shl ax, 8
movzx eax, ax
or ecx, eax
shl ecx, 0x10
or edx, ecx
cmp edx, 0x10000
jl 0x41c216
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 0x10]
mov ch, al
mov cl, ah
shr cx, 0xc
xor cl, byte [edi + 0x30b]
xor eax, eax
inc eax
and cl, al
xor byte [edi + 0x30b], cl
mov al, byte [edi + 0x30b]
mov cl, al
add cl, cl
xor cl, al
and cl, 2
xor cl, al
mov byte [edi + 0x30b], cl
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x12]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [edi + 0x120], cx
test cx, cx
js 0x41c216
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x2e]
movzx eax, cl
shl eax, 8
shr ecx, 8
or eax, ecx
mov word [edi + 0x124], ax
movzx eax, word [edx + 8]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [edi + 0x11e], cx
lea eax, [ebp - 0x58]
push eax
push 0x47495344
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
call fcn.004150f7
test eax, eax
je 0x41b5ac
or byte [edi + 0x30a], 0x20
xor eax, eax
inc eax
mov word [edi + 0x12e], ax
mov word [edi + 0x130], ax
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + 0x20]
mov al, byte [edx]
cmp al, 3
je 0x41b600
sub al, 4
cmp al, 1
ja 0x41b5d8
mov byte [edi + 0x133], 0x50
jmp 0x41b607
cmp byte [ecx + 0x23], 9
jne 0x41b5e7
mov byte [edi + 0x133], 0x30
jmp 0x41b607
movzx eax, byte [ecx + 0x21]
cmp eax, 0x10
jl 0x41b5f2
mov eax, esi
mov al, byte [eax + 0x4050e4]
mov byte [edi + 0x133], al
jmp 0x41b607
mov byte [edi + 0x133], 0x40
cmp byte [ecx + 0x23], 9
jne 0x41b61f
or byte [edi + 0x30a], 0x80
movzx eax, byte [edi + 0x133]
or al, 1
jmp 0x41b62b
movzx eax, byte [edi + 0x133]
push 2
pop ecx
or eax, ecx
mov byte [edi + 0x133], al
mov dword [edi + 0x110], esi
push 0xa
push edx
lea eax, [edi + 0x114]
push eax
call dword [0x4800d0]
mov ecx, dword [ebp - 0x1c]
mov ax, word [ecx + 0x2a]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 0x2b]
or edx, eax
shl edx, 0x10
movzx eax, byte [ecx + 0x2c]
shl ax, 8
movzx ecx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x2d]
or ecx, eax
or edx, ecx
mov dword [edi + 0x2e8], edx
mov ecx, dword [ebp - 0x1c]
mov ax, word [ecx + 0x2e]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 0x2f]
or edx, eax
shl edx, 0x10
movzx eax, byte [ecx + 0x30]
shl ax, 8
movzx ecx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x31]
or ecx, eax
or edx, ecx
mov dword [edi + 0x2ec], edx
mov ecx, dword [ebp - 0x1c]
mov ax, word [ecx + 0x32]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 0x33]
or edx, eax
shl edx, 0x10
movzx eax, byte [ecx + 0x34]
shl ax, 8
movzx ecx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x35]
or ecx, eax
or edx, ecx
mov dword [edi + 0x2f0], edx
mov ecx, dword [ebp - 0x1c]
mov ax, word [ecx + 0x36]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 0x37]
or edx, eax
shl edx, 0x10
movzx eax, byte [ecx + 0x38]
shl ax, 8
movzx ecx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x39]
or ecx, eax
or edx, ecx
mov dword [edi + 0x2f4], edx
mov ecx, dword [ebp - 0x1c]
mov ax, word [ecx + 0x4e]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 0x4f]
or edx, eax
shl edx, 0x10
movzx eax, byte [ecx + 0x50]
shl ax, 8
movzx ecx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x51]
or ecx, eax
or edx, ecx
mov dword [edi + 0x2f8], edx
mov ecx, dword [ebp - 0x1c]
mov ax, word [ecx + 0x52]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 0x53]
or edx, eax
shl edx, 0x10
movzx eax, byte [ecx + 0x54]
shl ax, 8
movzx ecx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x55]
or ecx, eax
or edx, ecx
mov dword [edi + 0x2fc], edx
push 4
push dword [ebp - 0x40]
lea eax, [edi + 0x300]
push eax
call dword [0x4800d0]
add esp, 0x18
mov edx, dword [ebp - 0x44]
mov ax, word [edx + 4]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 5]
or ecx, eax
mov dword [edi + 0x64], ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.0041c233
cmp eax, 1
jne 0x41c216
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x14], eax
cmp dword [eax + 0xc], esi
je 0x41c216
lea ecx, [ebp - 0x50]
push ecx
push dword [edi + 0x64]
push eax
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.0041c4bb
cmp eax, 1
jne 0x41c216
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x41b812
mov eax, dword [ebp - 0x28]
cmp word [eax + 0x74], si
je 0x41c216
cmp dword [eax + 0x70], esi
je 0x41c216
or byte [edi + 0x309], 1
mov dword [edi + 0x18], ecx
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x41b824
mov eax, edx
or eax, 1
or dword [edi + 0x2f8], eax
lea esi, [edi + 0x2d8]
push esi
lea ecx, [edi + 0x2e8]
call fcn.0041cea2
mov edx, dword [ebp - 0x44]
mov ax, word [edx + 0x10]
mov word [edi + 0x126], ax
mov eax, dword [edx + 0xc]
movzx ecx, word [edx + eax*8 + 0xa]
movzx eax, word [edx + eax*8 + 8]
dec ecx
add eax, ecx
mov word [edi + 0x128], ax
mov al, byte [esi]
mov byte [edi + 0x132], al
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x34]
mov edx, edi
mov ecx, dword [ebp - 0x20]
call fcn.004250bb
cmp eax, 1
jne 0x41c216
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x10c], eax
movzx eax, word [edi + 0x126]
push 0x20
pop edx
cmp dx, ax
jae 0x41b897
mov eax, edx
mov byte [edi + 0x134], al
mov byte [edi + 0x135], 0xff
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi + 0x5c]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [edi + 0x12c], cx
cmp cx, dx
je 0x41b8da
lea eax, [edi + 0x137]
push eax
mov edx, 0x100
call fcn.0041413e
push 0x20
pop edx
test al, al
jne 0x41b8e0
mov byte [edi + 0x137], dl
movzx eax, word [esi + 0x5a]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [edi + 0x12a], cx
mov eax, 0x2022
cmp cx, ax
jne 0x41b909
mov byte [edi + 0x136], 0x95
jmp 0x41b92c
cmp cx, dx
je 0x41b926
lea eax, [edi + 0x136]
push eax
mov edx, 0x100
call fcn.0041413e
test al, al
jne 0x41b92c
push 0x20
pop edx
mov byte [edi + 0x136], dl
movzx eax, word [esi + 0x44]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x2c], cx
movzx eax, word [esi + 0x46]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x2e], cx
movzx eax, word [esi + 0x48]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x30], cx
test byte [edi + 0x309], 0x10
je 0x41bac3
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add esi, 0x58
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xc]
mov ecx, 0x8000
add eax, ecx
sar eax, 0x10
mov word [ebx + 0x28], ax
mov eax, dword [ebx + 4]
add eax, ecx
sar eax, 0x10
cwde
neg eax
mov word [ebx + 0x2a], ax
movsx ecx, ax
mov edi, dword [ebp - 0x4c]
movsx eax, word [edi + 0x120]
sub ecx, eax
movsx eax, word [ebx + 0x28]
add ecx, eax
mov word [ebx + 0x32], cx
test cx, cx
jns 0x41b9cf
movsx eax, word [ebx + 0x28]
sub eax, ecx
mov word [ebx + 0x28], ax
xor eax, eax
mov word [ebx + 0x32], ax
xor eax, eax
mov word [ebx + 0x34], ax
push 2
pop eax
test byte [edi + 0x30b], al
je 0x41ba00
movsx ecx, word [ebx + 0x28]
movsx eax, word [ebx + 0x32]
sub ecx, eax
mov word [ebx + 0x2c], cx
movsx eax, word [ebx + 0x2a]
neg eax
mov word [ebx + 0x2e], ax
mov ax, word [ebx + 0x32]
mov word [ebx + 0x30], ax
push edx
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.0041d3c0
cmp eax, 1
jne 0x41c216
lea eax, [ebx + 0x14]
mov esi, dword [ebp - 0x34]
push esi
push eax
push 4
pop edx
mov ecx, dword [ebp - 0x28]
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
lea eax, [ebx + 0x16]
push esi
push eax
push 5
pop edx
mov ecx, dword [ebp - 0x28]
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
push esi
lea eax, [ebx + 0x24]
push eax
xor edx, edx
inc edx
mov ecx, dword [ebp - 0x28]
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
lea eax, [ebx + 0x26]
push esi
push eax
push 2
pop eax
mov edx, eax
mov ecx, dword [ebp - 0x28]
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
movsx eax, word [ebx + 0x26]
neg eax
mov word [ebx + 0x26], ax
push esi
lea eax, [ebx + 0x22]
push eax
push 6
pop edx
mov ecx, dword [ebp - 0x28]
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
push esi
lea eax, [ebx + 0x20]
push eax
push 7
pop edx
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
lea edx, [ebx + 0x16]
jmp 0x41bc0e
mov eax, dword [ebp - 0x24]
movzx edx, word [eax + 0x24]
mov eax, edx
sar eax, 8
movzx ecx, al
shl edx, 8
movsx eax, dx
or ecx, eax
shl ecx, 0x10
mov dword [ebx], ecx
mov eax, dword [ebp - 0x24]
movzx edx, word [eax + 0x26]
mov eax, edx
sar eax, 8
movzx ecx, al
shl edx, 8
movsx eax, dx
or ecx, eax
shl ecx, 0x10
mov dword [ebx + 4], ecx
mov eax, dword [ebp - 0x24]
movzx edx, word [eax + 0x28]
mov eax, edx
sar eax, 8
movzx ecx, al
shl edx, 8
movsx eax, dx
or ecx, eax
shl ecx, 0x10
mov dword [ebx + 8], ecx
mov eax, dword [ebp - 0x24]
movzx edx, word [eax + 0x2a]
mov eax, edx
sar eax, 8
movzx ecx, al
shl edx, 8
movsx eax, dx
or ecx, eax
shl ecx, 0x10
mov dword [ebx + 0xc], ecx
movzx ecx, word [esi + 0x4a]
movzx eax, cl
shl eax, 8
shr ecx, 8
or eax, ecx
mov word [ebx + 0x28], ax
movzx eax, word [esi + 0x4c]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x2a], cx
movsx ecx, cx
movsx eax, word [edi + 0x120]
sub ecx, eax
movsx eax, word [ebx + 0x28]
add ecx, eax
mov word [ebx + 0x32], cx
test cx, cx
jns 0x41bb87
movsx eax, word [ebx + 0x28]
sub eax, ecx
mov word [ebx + 0x28], ax
xor eax, eax
mov word [ebx + 0x32], ax
xor eax, eax
mov word [ebx + 0x34], ax
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + 0xa]
movzx eax, cl
shl eax, 8
shr ecx, 8
or eax, ecx
mov word [ebx + 0x14], ax
movzx eax, word [esi + 2]
lea edx, [ebx + 0x16]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [edx], cx
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 4]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x24], cx
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 6]
mov ecx, eax
shr ecx, 8
shl eax, 8
or ecx, eax
neg ecx
mov word [ebx + 0x26], cx
movzx eax, word [esi + 0x58]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x20], cx
movzx eax, word [esi + 0x56]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x22], cx
mov esi, dword [ebp - 0x28]
mov cl, byte [edi + 0x309]
mov al, cl
and al, 0x18
cmp al, 0x18
jne 0x41bdc0
test cl, cl
jns 0x41bdc0
push 2
pop eax
test byte [edi + 0x2d6], al
jne 0x41bdc0
mov esi, dword [esi + 8]
add esi, 0x58
lea edi, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x80]
mov ecx, 0x8000
add eax, ecx
sar eax, 0x10
mov word [ebx + 0x90], ax
mov eax, dword [ebx + 0x78]
add eax, ecx
sar eax, 0x10
cwde
neg eax
mov word [ebx + 0x92], ax
movsx ecx, ax
mov edi, dword [ebp - 0x4c]
movsx eax, word [edi + 0x120]
sub ecx, eax
movsx eax, word [ebx + 0x90]
add ecx, eax
mov word [ebx + 0x9a], cx
test cx, cx
jns 0x41bcaa
movsx eax, word [ebx + 0x90]
sub eax, ecx
mov word [ebx + 0x90], ax
xor eax, eax
mov word [ebx + 0x9a], ax
push 2
pop eax
test byte [edi + 0x30b], al
je 0x41bce5
movsx ecx, word [ebx + 0x90]
movsx eax, word [ebx + 0x9a]
sub ecx, eax
mov word [ebx + 0x94], cx
movsx eax, word [ebx + 0x92]
neg eax
mov word [ebx + 0x96], ax
mov ax, word [ebx + 0x9a]
jmp 0x41bcff
mov ax, word [ebx + 0x2c]
mov word [ebx + 0x94], ax
mov ax, word [ebx + 0x2e]
mov word [ebx + 0x96], ax
mov ax, word [ebx + 0x30]
mov word [ebx + 0x98], ax
push 1
lea eax, [ebx + 0x84]
push eax
push 5
pop edx
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
push eax
lea eax, [ebx + 0x86]
push eax
push 4
pop edx
mov ecx, esi
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
push eax
lea eax, [ebx + 0x88]
push eax
push 7
pop edx
mov ecx, esi
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
push eax
lea eax, [ebx + 0x8a]
push eax
push 6
pop edx
mov ecx, esi
call fcn.0041d4b8
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x41c216
push ecx
lea eax, [ebx + 0x8c]
push eax
mov edx, ecx
mov ecx, esi
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
lea eax, [ebx + 0x8e]
push 1
push eax
push 2
pop eax
mov edx, eax
mov ecx, esi
call fcn.0041d4b8
cmp eax, 1
jne 0x41c216
lea ecx, [ebx + 0x8e]
movsx eax, word [ecx]
neg eax
mov word [ecx], ax
jmp 0x41bddb
movsx eax, word [edx]
add eax, 0x1b
mov word [ebx + 0x84], ax
movsx eax, word [ebx + 0x14]
add eax, 0x1b
mov word [ebx + 0x86], ax
test byte [edi + 0x309], 1
je 0x41beba
cmp dword [ebp - 0x54], 0
je 0x41c216
mov ax, word [edi + 0x120]
mov word [edi + 0x122], ax
mov ax, word [ebx + 0x2c]
mov word [ebx + 0x54], ax
movsx ecx, word [ebx + 0x2c]
movsx eax, word [edi + 0x122]
sub ecx, eax
movsx eax, word [ebx + 0x2e]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov word [ebx + 0x56], ax
movsx eax, word [ebx + 0x54]
shl eax, 0x10
sub eax, dword [ebx + 0xc]
mov dword [ebx + 0x58], eax
movsx eax, word [ebx + 0x54]
shl eax, 0x10
sub eax, dword [ebx + 4]
mov dword [ebx + 0x60], eax
movsx eax, word [ebx + 0x56]
shl eax, 0x10
add eax, dword [ebx + 8]
mov dword [ebx + 0x64], eax
movsx ecx, word [ebx + 0x56]
shl ecx, 0x10
mov eax, dword [ebx]
add eax, ecx
mov dword [ebx + 0x5c], eax
add eax, 0x8000
sar eax, 0x10
neg eax
mov word [ebx + 0x6a], ax
mov edx, dword [ebx + 0x64]
add edx, 0x8000
sar edx, 0x10
mov word [ebx + 0x68], dx
movsx ecx, word [ebx + 0x6a]
movsx eax, word [edi + 0x120]
sub ecx, eax
movsx eax, dx
add ecx, eax
mov word [ebx + 0x72], cx
test cx, cx
jns 0x41bea2
movsx eax, word [ebx + 0x68]
sub eax, ecx
mov word [ebx + 0x68], ax
xor eax, eax
mov word [ebx + 0x72], ax
mov ax, word [ebx + 0x2c]
mov word [ebx + 0x6c], ax
mov ax, word [ebx + 0x2e]
mov word [ebx + 0x6e], ax
mov ax, word [ebx + 0x30]
mov word [ebx + 0x70], ax
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi + 0x1a]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x1c], cx
movzx eax, word [esi + 0x1c]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x1e], cx
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0xa]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x18], cx
movzx eax, word [edx + 8]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x1a], cx
mov ecx, dword [edx + 4]
mov eax, ecx
sar eax, 0x18
movzx edx, al
mov eax, ecx
sar eax, 0x10
shl eax, 8
movzx eax, ax
or edx, eax
sar ecx, 8
movzx ecx, cl
mov eax, dword [ebp - 0x3c]
mov ax, word [eax + 4]
shl ax, 8
movzx eax, ax
or ecx, eax
shl ecx, 0x10
or edx, ecx
imul eax, edx, 0xa
add eax, 0x8000
sar eax, 0x10
mov word [ebx + 0x36], ax
test ax, ax
jne 0x41bf58
push 0xffffffffffffff9c
pop ecx
jmp 0x41bf5b
movsx ecx, ax
call fcn.00425e34
mov dword [ebx + 0x10], eax
mov edx, dword [ebp - 0x38]
movzx eax, word [edx + 0x14]
mov ecx, eax
shr ecx, 8
shl eax, 8
cwde
or ecx, eax
mov dword [ebx + 0x4c], ecx
movzx eax, word [edx + 0x12]
mov ecx, eax
shr ecx, 8
shl eax, 8
cwde
or ecx, eax
mov dword [ebx + 0x50], ecx
movzx eax, word [esi + 0xa]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x3a], cx
movzx eax, word [esi + 0xc]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x3c], cx
movzx eax, word [esi + 0xe]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x3e], cx
movzx eax, word [esi + 0x10]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x40], cx
movzx eax, word [esi + 0x12]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x42], cx
movzx eax, word [esi + 0x14]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x44], cx
movzx eax, word [esi + 0x16]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x46], cx
movzx eax, word [esi + 0x18]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov word [ebx + 0x48], cx
mov esi, dword [ebp - 0x34]
cmp byte [ebp + 0x10], 0
je 0x41c052
push esi
lea eax, [edi + 0x68]
push eax
push dword [ebp + 8]
push esi
push 0x40
lea eax, [edi + 0x13c]
push eax
push 1
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.00414e6b
test eax, eax
je 0x41c216
lea eax, [edi + 0x1fc]
push esi
push esi
push dword [ebp + 8]
push esi
push 0x40
push eax
push 2
pop eax
push eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.00414e6b
test eax, eax
je 0x41c216
push esi
push esi
push dword [ebp + 8]
push esi
push 0x80
lea eax, [edi + 0x17c]
push eax
push 6
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.00414e6b
test eax, eax
je 0x41c216
push esi
push esi
push dword [ebp + 8]
push 1
push 0x96
lea eax, [edi + 0x23c]
push eax
push 3
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.00414e6b
test eax, eax
je 0x41c216
xor eax, eax
mov word [edi + 0x2d6], ax
mov edx, dword [ebp - 0x24]
mov ax, word [edx + 0x2c]
mov ch, al
mov cl, ah
test cl, 1
je 0x41c0ea
push 2
pop eax
mov word [edi + 0x2d6], ax
mov ax, word [edx + 0x2c]
mov ch, al
mov cl, ah
push 2
pop edx
test dl, cl
je 0x41c10a
movzx eax, word [edi + 0x2d6]
or eax, 1
mov word [edi + 0x2d6], ax
movzx eax, word [edi + 0x2d6]
or eax, 4
mov word [edi + 0x2d6], ax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 4]
movzx eax, cl
shl eax, 8
shr ecx, 8
or eax, ecx
mov word [ebx + 0x38], ax
test byte [edi + 0x30b], dl
je 0x41c16e
mov al, byte [edi + 0x2d6]
and al, dl
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x12c
add eax, 0x190
mov word [ebx + 0x38], ax
movzx eax, ax
cdq
push 0x64
pop ecx
idiv ecx
inc eax
cmp eax, 0xb
jl 0x41c168
push 0xb
pop eax
mov byte [edi + 0x116], al
push esi
push esi
push dword [ebp + 8]
push esi
push 0x40
lea eax, [edi + 0x1fc]
push eax
push 0x11
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.00414e6b
cmp byte [0x47e40e], 0
je 0x41c1ce
cmp byte [ebp + 0x10], 0
je 0x41c1b8
push esi
lea eax, [edi + 0x68]
push eax
push dword [ebp + 8]
push esi
push 0x40
lea eax, [edi + 0x13c]
push eax
push 0x10
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.00414e6b
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 4]
movzx eax, cl
shl eax, 8
shr ecx, 8
or eax, ecx
mov word [ebx + 0x38], ax
push edi
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
call fcn.0041d922
cmp eax, 1
jne 0x41c216
mov dl, byte [edi + 0x309]
test al, dl
je 0x41c20f
lea ecx, [edi + 0x13c]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41c1f2
sub ecx, ebx
sar ecx, 1
cmp ecx, 0x1e
jbe 0x41c20f
and dl, 0xfe
mov byte [edi + 0x309], dl
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0041c22d
mov eax, dword [ebp - 0x34]
call fcn.00475fb1
ret 0xc