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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4930c0
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [0x4964a4]
push ebp
push esi
push edi
mov esi, ecx
mov ebp, 0x4976fc
mov eax, dword [ebp]
mov edi, dword [esi + 0x138]
push eax
mov ecx, edi
call fcn.0041f260
test eax, eax
jge 0x42e256
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
jmp 0x42e25c
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0x3b0]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esi + 0x3ac]
mov dword [esp + 0x30], eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call ebx
test eax, eax
jne 0x42e2a5
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call ebx
test eax, eax
je 0x42e2cc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.00402ee0
add ebp, 0x10
cmp ebp, 0x49779c
jb 0x42e229
mov eax, dword [esi + 0xd30]
test eax, eax
jne 0x42e3e1
mov edi, dword [esi + 0x138]
push 0x4a8614
mov ecx, edi
call fcn.0041f260
xor ebx, ebx
cmp eax, ebx
jge 0x42e317
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x10]
jmp 0x42e31d
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], eax
push ecx
call dword [0x49648c]
test eax, eax
je 0x42e394
mov edi, dword [esi + 0x138]
push 0x4a8820
mov ecx, edi
call fcn.0041f260
cmp eax, ebx
jge 0x42e373
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x10]
jmp 0x42e379
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00439f60
mov ecx, eax
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
sub edi, eax
mov ecx, dword [ecx + 4]
sub ebp, ecx
mov ecx, esi
call fcn.00439f60
sub esp, 0x10
mov ecx, eax
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], edi
add eax, edi
mov ecx, dword [ecx + 4]
mov dword [edx + 4], ebp
add ecx, ebp
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00402ee0
cmp dword [esi + 0xd2c], 5
jne 0x42e45b
mov eax, dword [esi + 0xd30]
test eax, eax
jne 0x42e45b
mov ecx, dword [esi + 0x3ac]
mov eax, dword [esi + 0x3b0]
sub esp, 0x10
sub ecx, 0x10
mov ebx, esp
sub eax, 0x10
lea edx, [ecx + 0x30]
mov dword [ebx], ecx
lea edi, [eax + 0x30]
mov ecx, esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub esp, 0x10
add ecx, 0xfffffff0
mov ebx, esp
add eax, 0xfffffff0
lea edx, [ecx + 0x30]
mov dword [ebx], ecx
lea edi, [eax + 0x30]
mov ecx, esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov ecx, dword [esi + 0x190]
push 0
call fcn.0041f6b0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x42e489
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4a70d4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x42e4ba
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4a70d4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov eax, dword [0x4a70e8]
xor ebp, ebp
test eax, eax
jle 0x42e539
mov edx, dword [esi + 0x1e0]
mov eax, dword [edx + ebp*4]
cmp eax, 0x13
ja case.0x42e4db.2
xor ecx, ecx
mov cl, byte [eax + 0x42f578]
jmp dword [ecx*4 + 0x42f56c]
mov edx, dword [esi + 0x1d8]
mov ecx, dword [edx + ebp*4]
test ecx, ecx
je 0x42e4f4
call fcn.004089f0
mov eax, dword [esi + 0x1dc]
mov ecx, dword [eax + ebp*4]
test ecx, ecx
je case.0x42e4db.0
call fcn.004089f0
jmp case.0x42e4db.0
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4a70d4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov eax, dword [0x4a70e8]
inc ebp
cmp ebp, eax
jl 0x42e4c5
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esi + 0x3ac], ecx
mov ecx, dword [esi + 0x2a4]
mov dword [esi + 0x3b0], edx
mov eax, dword [esi + 0xd30]
cmp eax, 1
je 0x42e572
mov edi, dword [esp + 0x50]
mov eax, ecx
sub eax, edi
xor edx, edx
test eax, eax
setle dl
dec edx
and eax, edx
jmp 0x42e585
mov edi, dword [esp + 0x50]
mov edx, dword [0x4a70e0]
lea eax, [ecx + edi]
cmp eax, edx
jl 0x42e585
mov eax, edx
cmp eax, ecx
mov dword [esi + 0x2a4], eax
je 0x42e59c
mov ecx, dword [esi + 0x184]
push 0
call fcn.0041f6b0
mov eax, dword [esi + 0xd2c]
mov ecx, dword [esi + 0x27c]
cmp eax, 4
jne 0x42e5c8
mov eax, dword [esi + 0xd30]
test eax, eax
jne 0x42e5c8
mov edx, dword [0x4a70e0]
lea eax, [ecx + edi]
cmp eax, edx
jl 0x42e5d6
mov eax, edx
jmp 0x42e5d6
mov eax, ecx
xor edx, edx
sub eax, edi
test eax, eax
setle dl
dec edx
and eax, edx
cmp eax, ecx
mov dword [esi + 0x27c], eax
je 0x42e5ed
mov ecx, dword [esi + 0x13c]
push 0
call fcn.0041f6b0
mov eax, dword [esi + 0x3d4]
mov ecx, dword [esi + 0x3d8]
test eax, eax
je 0x42e618
mov eax, dword [esi + 0x2a4]
test eax, eax
jne 0x42e618
mov edx, dword [0x4a70e0]
lea eax, [ecx + edi]
cmp eax, edx
jl 0x42e626
mov eax, edx
jmp 0x42e626
mov eax, ecx
xor edx, edx
sub eax, edi
test eax, eax
setle dl
dec edx
and eax, edx
cmp eax, ecx
mov dword [esi + 0x3d8], eax
je 0x42e63d
mov ecx, dword [esi + 0x188]
push 0
call fcn.0041f6b0
mov eax, dword [esi + 0x3d8]
mov ecx, dword [0x4a70e0]
cmp eax, ecx
jne 0x42e664
test byte [esi + 0x58], 1
je 0x42e664
mov ecx, esi
mov dword [esi + 0x210], 0
call fcn.004356c0
mov eax, dword [esi + 0xd30]
mov ebp, dword [esi + 0x2a8]
or ebx, 0xffffffff
cmp eax, 5
je 0x42e882
cmp eax, 6
je 0x42e882
cmp eax, 2
je 0x42e704
cmp eax, 3
je 0x42e704
cmp eax, 4
je 0x42e704
cmp eax, 0xb
je 0x42e704
cmp eax, 7
jne 0x42e6b3
mov ecx, dword [esi + 0x198]
push 0x4a98f4
call fcn.0041f6b0
jmp 0x42e8e3
test ebp, ebp
je 0x42e8e3
mov edi, dword [esp + 0x50]
mov eax, ebp
sub eax, edi
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and eax, ecx
test eax, eax
mov dword [esi + 0x2a8], eax
jne 0x42e8e3
mov edi, dword [esi + 0x194]
test edi, edi
je 0x42e6f5
mov ecx, edi
call fcn.0041f060
push edi
call fcn.004831a0
add esp, 4
mov dword [esi + 0x194], 0
jmp 0x42e8e3
mov ecx, dword [esi + 0x194]
push 0x4a98f4
call fcn.0041f6b0
mov ecx, dword [esi + 0x194]
push 0x4a85d4
call fcn.0041f6b0
mov ecx, dword [esi + 0x194]
push 0x4a85d0
call fcn.0041f6b0
cmp dword [esi + 0xd30], 4
jne 0x42e77d
mov ecx, dword [esi + 0x194]
push 0x4a9448
call fcn.0041f6b0
mov ecx, dword [esi + 0x194]
push 0x4a943c
call fcn.0041f6b0
mov ecx, dword [esi + 0x194]
push 0x4a9430
call fcn.0041f6b0
mov ecx, dword [esi + 0x194]
push 0x4aa15c
call fcn.0041f6b0
mov eax, dword [esi + 0xd30]
cmp eax, 4
je 0x42e78d
cmp eax, 0xb
jne 0x42e7d7
xor edi, edi
mov edx, dword [0x4aca3c]
mov dword [esp + 0x10], edx
push edi
lea eax, [esp + 0x14]
push 0x4aa150
push eax
mov dword [esp + 0x54], 0
call fcn.0048167d
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x194]
call fcn.0041f6b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], ebx
call fcn.00482c2a
inc edi
cmp edi, 0xa
jl 0x42e78f
mov edx, dword [esi + 0x2a8]
mov eax, dword [esp + 0x50]
mov ecx, dword [0x4a70e4]
add eax, edx
cmp eax, ecx
jl 0x42e7ef
mov eax, ecx
mov dword [esi + 0x2a8], eax
mov ecx, dword [0x4a70e4]
cmp eax, ecx
jne 0x42e8e3
test byte [esi + 0x58], 1
je 0x42e8e3
mov eax, dword [esi + 0xd30]
cmp eax, 2
je 0x42e821
cmp eax, 3
jne 0x42e8e3
call fcn.00462c3a
imul eax, dword [esi + 0x2b0]
mov ecx, dword [esi + 0xd30]
cdq
and edx, 0x7fff
add eax, edx
sar eax, 0xf
cmp ecx, 2
mov dword [esi + 0x2ac], eax
jne 0x42e869
push eax
mov ecx, esi
call fcn.00422f70
push 0x4aa144
push esi
call fcn.00440b10
add esp, 8
mov ecx, esi
call fcn.00435f00
jmp 0x42e8e3
mov ecx, esi
call fcn.004356c0
cmp dword [esi + 0xd30], 3
jne 0x42e8e3
mov ecx, esi
call fcn.00435f00
jmp 0x42e8e3
mov ecx, dword [esi + 0x3d4]
test ecx, ecx
jne 0x42e8e3
cmp ebp, dword [0x4a70e4]
jne 0x42e8c4
cmp eax, 5
jne 0x42e8b4
mov ecx, esi
call fcn.0043e180
push 0x11
mov ecx, esi
call fcn.0042cd10
push 0
mov ecx, esi
call fcn.0042d230
jmp 0x42e8c4
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x10
push eax
call dword [0x496484]
mov ecx, dword [esi + 0x2a8]
mov edx, dword [esp + 0x50]
lea eax, [ecx + edx]
mov ecx, dword [0x4a70e4]
cmp eax, ecx
jl 0x42e8dd
mov eax, ecx
mov dword [esi + 0x2a8], eax
cmp dword [esi + 0x2a8], ebp
je 0x42e913
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebp, esp
xor eax, eax
mov edi, dword [0x4a70d4]
xor ecx, ecx
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.00402ee0
mov eax, dword [esi + 0xd30]
test eax, eax
jne 0x42f554
mov eax, dword [0x4b7f04]
test eax, eax
jne 0x42f554
mov eax, dword [0x4b7f00]
test eax, eax
je 0x42eccd
mov eax, dword [esi + 0xd2c]
cmp eax, 2
je 0x42e9f1
cmp eax, 3
je 0x42e9f1
cmp eax, 4
jne 0x42e96d
mov eax, dword [0x4b7ec8]
test eax, eax
je 0x42e96d
cmp dword [esi + 0x214], ebx
je 0x42e9f1
mov ecx, dword [esi + 0x1f8]
test ecx, ecx
je 0x42eccd
mov eax, dword [ecx]
mov edi, str.IconSelect
call dword [eax + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42e9a9
test cl, cl
je 0x42e9a5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42e9a9
add eax, 2
add edi, 2
test cl, cl
jne 0x42e985
xor eax, eax
jmp 0x42e9ad
sbb eax, eax
sbb eax, ebx
test eax, eax
je 0x42e9f1
mov ecx, dword [esi + 0x1f8]
mov edi, str.ItemSelect
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42e9e5
test cl, cl
je 0x42e9e1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42e9e5
add eax, 2
add edi, 2
test cl, cl
jne 0x42e9c1
xor eax, eax
jmp 0x42e9e9
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x42eccd
mov eax, dword [0x4b7ee0]
mov edi, dword [0x4b7edc]
mov ebp, dword [esp + 0x50]
lea ecx, [eax + eax*2]
mov eax, 0x10624dd3
add edi, ebp
lea ecx, [ecx + ecx*4]
mov dword [0x4b7edc], edi
shl ecx, 2
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jl 0x42ea74
mov eax, dword [0x4b7ecc]
mov ecx, dword [0x4b7ed8]
add eax, 0xc
sub esp, 0x10
mov edx, dword [0x4a70d0]
xor ebp, ebp
mov dword [0x4b7ecc], eax
mov ebx, esp
inc ecx
xor eax, eax
mov edi, dword [0x4a70d4]
mov dword [0x4b7ed8], ecx
mov dword [ebx], eax
xor ecx, ecx
mov dword [0x4b7edc], ebp
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
or ebx, 0xffffffff
jmp 0x42ea76
xor ebp, ebp
cmp dword [0x4b7ef4], ebp
jne 0x42eacd
mov eax, dword [0x4b7eec]
mov ecx, dword [0x4b7ed8]
cmp eax, ebp
je 0x42ea9d
cmp ecx, eax
jl 0x42ea9d
mov dword [0x4b7ef4], 0x5f
jmp 0x42eacd
mov eax, dword [0x4b7ee4]
cmp eax, ebp
je 0x42ebb4
cmp ecx, eax
jl 0x42ebb4
mov eax, dword [0x4b7ee8]
cmp eax, ebp
je 0x42eac3
cmp ecx, eax
jge 0x42ebb4
mov dword [0x4b7ef4], 0x60
mov ecx, dword [esi + 0x1f8]
cmp ecx, ebp
je 0x42ebb4
mov edx, dword [ecx]
mov edi, str.IconSelect
call dword [edx + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42eb09
test cl, cl
je 0x42eb05
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42eb09
add eax, 2
add edi, 2
test cl, cl
jne 0x42eae5
xor eax, eax
jmp 0x42eb0d
sbb eax, eax
sbb eax, ebx
cmp eax, ebp
je 0x42eb4d
mov ecx, dword [esi + 0x1f8]
mov edi, str.ItemSelect
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42eb45
test cl, cl
je 0x42eb41
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42eb45
add eax, 2
add edi, 2
test cl, cl
jne 0x42eb21
xor eax, eax
jmp 0x42eb49
sbb eax, eax
sbb eax, ebx
cmp eax, ebp
jne 0x42ebb4
push ebp
mov ecx, esi
call fcn.0042cd10
push 0x4a8474
lea ecx, [esp + 0x14]
call fcn.00482c98
mov edx, dword [0x4b7ef4]
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x34]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x4c], 1
push edx
call dword [eax + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], ebx
call fcn.00482c2a
mov eax, dword [0x4b7ef4]
cmp eax, 0x5f
je 0x42eb9c
cmp eax, 0x60
jne 0x42ebae
mov dword [0x4b7ee8], ebp
mov dword [0x4b7ee4], ebp
mov dword [0x4b7eec], ebp
mov dword [0x4b7ef4], ebp
cmp dword [esi + 0xd2c], 4
jne 0x42ec90
cmp dword [0x4b7ec8], ebp
je 0x42ec90
cmp dword [0x4b7ef4], ebp
je 0x42ec38
push ebp
mov ecx, esi
call fcn.0042cd10
push 0x4a8474
lea ecx, [esp + 0x14]
call fcn.00482c98
mov edx, dword [0x4b7ef4]
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x34]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x4c], 2
push edx
call dword [eax + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], ebx
call fcn.00482c2a
mov eax, dword [0x4b7ef4]
cmp eax, 0x5f
je 0x42ec24
cmp eax, 0x60
jne 0x42ec8a
mov dword [0x4b7ee8], ebp
mov dword [0x4b7ee4], ebp
mov dword [0x4b7eec], ebp
jmp 0x42ec8a
cmp dword [0x4b7edc], ebp
jne 0x42ec90
push ebp
mov ecx, esi
mov dword [0x4b7ef4], 0x61
call fcn.0042cd10
push 0x4a8474
lea ecx, [esp + 0x14]
call fcn.00482c98
mov edx, dword [0x4b7ef4]
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x34]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x4c], 3
push edx
call dword [eax + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], ebx
call fcn.00482c2a
mov dword [0x4b7ef4], ebp
mov ecx, dword [0x4b7ef8]
cmp ecx, ebp
je 0x42eccd
cmp dword [0x4b7edc], ebp
jne 0x42eccd
mov eax, dword [esi + 0xd2c]
cmp eax, 2
je 0x42ecb2
cmp eax, 3
jne 0x42eccd
mov eax, dword [0x4b7efc]
inc eax
cmp eax, ecx
mov dword [0x4b7efc], eax
jl 0x42eccd
mov ecx, esi
call fcn.004356c0
jmp 0x42f554
mov ecx, dword [esi + 0x1f8]
test ecx, ecx
je 0x42ecfb
mov edx, dword [esp + 0x58]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push edx
call dword [eax + 8]
test eax, eax
jne 0x42f554
push eax
mov ecx, esi
call fcn.0042cd10
mov eax, dword [esi + 0x21c]
add eax, 0xffffffe7
cmp eax, 8
ja case.0x42ed0d.26
jmp dword [eax*4 + 0x42f58c]
mov ebx, dword [esi + 0x228]
mov ecx, 2
sub ecx, ebx
mov eax, 0x64
shl ecx, 1
sar eax, cl
test eax, eax
jle case.0x42ed0d.26
mov ebx, dword [esp + 0x50]
mov ebp, eax
lea ebx, [ebx + ebx*4]
shl ebx, 3
xor edi, edi
mov eax, dword [esi + 0x1fc]
mov ecx, dword [eax + edi + 4]
lea eax, [eax + edi + 4]
add ecx, ebx
mov dword [eax], ecx
mov ecx, dword [esi + 0x1fc]
mov edx, dword [0x4a70d4]
mov eax, dword [ecx + edi + 4]
add edx, 0x80
cmp eax, edx
jl 0x42ede5
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ecx + edi], edx
mov eax, dword [0x4a70d4]
mov edx, dword [esi + 0x1fc]
lea eax, [eax + eax*2]
lea ecx, [edx + edi + 4]
cdq
sub eax, edx
mov edx, 0xffffff00
sar eax, 1
sub edx, eax
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ecx + edi + 8], edx
add edi, 0xc
dec ebp
jne 0x42ed40
jmp case.0x42ed0d.26
mov ebx, dword [esi + 0x228]
mov ecx, 2
sub ecx, ebx
mov eax, 0x64
shl ecx, 1
sar eax, cl
test eax, eax
jle case.0x42ed0d.26
mov edx, dword [esp + 0x50]
xor edi, edi
mov ebp, eax
lea ebx, [edx + edx]
mov eax, dword [esi + 0x1fc]
mov ecx, dword [eax + edi + 4]
lea eax, [eax + edi + 4]
add ecx, ebx
mov dword [eax], ecx
mov ecx, dword [esi + 0x1fc]
mov eax, dword [0x4a70d4]
mov edx, dword [ecx + edi + 4]
cmp edx, eax
jl 0x42eebd
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ecx + edi], edx
mov edx, dword [esi + 0x1fc]
lea ecx, [edx + edi + 4]
mov edx, dword [0x4a70d4]
lea eax, [edx*4]
sub eax, edx
neg eax
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
add edx, eax
mov dword [ecx], edx
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ecx + edi + 8], edx
add edi, 0xc
dec ebp
jne 0x42ee1d
jmp case.0x42ed0d.26
mov ebx, dword [esi + 0x228]
mov ecx, 2
sub ecx, ebx
mov eax, 0x64
shl ecx, 1
sar eax, cl
test eax, eax
jle case.0x42ed0d.26
xor edi, edi
mov ebp, eax
mov edx, dword [esi + 0x1fc]
mov ecx, dword [esp + 0x50]
lea eax, [edx + edi + 4]
mov edx, dword [edx + edi + 4]
add edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 0x1fc]
mov ecx, dword [0x4a70d4]
mov eax, dword [edx + edi + 4]
cmp eax, ecx
jl 0x42ef93
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
mov eax, dword [esi + 0x1fc]
add edx, ecx
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [eax + edi], edx
mov edx, dword [0x4a70d4]
mov ecx, dword [esi + 0x1fc]
lea eax, [edx*4]
sub eax, edx
lea ecx, [ecx + edi + 4]
neg eax
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
add edx, eax
mov dword [ecx], edx
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ecx + edi + 8], edx
add edi, 0xc
dec ebp
jne 0x42eeee
jmp case.0x42ed0d.26
mov edi, dword [esi + 0x228]
mov ecx, 2
sub ecx, edi
mov eax, 0x14
sar eax, cl
test eax, eax
jle case.0x42ed0d.26
mov ebx, dword [esp + 0x50]
xor edi, edi
mov ebp, eax
mov edx, dword [esi + 0x1fc]
mov ecx, dword [edi + edx + 8]
lea eax, [edi + edx + 8]
add ecx, ebx
mov dword [eax], ecx
mov eax, dword [0x4a70d4]
mov ecx, dword [esi + 0x1fc]
cdq
sub eax, edx
mov edx, dword [edi + ecx + 8]
sar eax, 1
cmp edx, eax
jl 0x42f061
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d0]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [edi + ecx], edx
call fcn.00462c3a
mov ecx, eax
mov eax, 0x80010003
imul ecx, dword [0x4a70d4]
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x1fc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [edi + ecx + 4], edx
mov edx, dword [esi + 0x1fc]
mov eax, dword [0x4a70d4]
lea ecx, [edi + edx + 8]
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
neg eax
add edx, eax
mov dword [ecx], edx
add edi, 0xc
dec ebp
jne 0x42efc6
jmp case.0x42ed0d.26
call fcn.00462c3a
mov ecx, dword [esi + 0x228]
mov edi, eax
mov eax, 4
sub edi, 0x3fff
shl eax, cl
imul edi, eax
mov eax, 0x80010003
imul edi
mov eax, dword [esi + 0x1fc]
add edx, edi
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [eax], edx
call fcn.00462c3a
mov ecx, dword [esi + 0x228]
mov edx, 4
shl edx, cl
mov edi, eax
mov eax, 0x80010003
sub edi, 0x3fff
mov ecx, dword [esi + 0x1fc]
imul edi, edx
imul edi
add edx, edi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ecx + 4], edx
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x42f0f3
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x42f554
mov eax, dword [esi + 0xd2c]
cmp eax, 1
je 0x42f108
cmp eax, 2
je 0x42f108
cmp eax, 3
jne 0x42f11a
mov ecx, esi
call fcn.0043f870
test eax, eax
je 0x42f11a
mov ecx, esi
call fcn.004356c0
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x42f131
mov ecx, esi
call fcn.0043dd80
test eax, eax
jne 0x42f554
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push edx
push eax
push ebp
mov ecx, esi
call fcn.0042f5b0
mov ebp, eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x42f554
mov ecx, esi
call fcn.0043dd80
test eax, eax
jne 0x42f177
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 8]
mov ecx, dword [esi + 0x78]
cmp ecx, eax
jl 0x42f177
mov ecx, esi
call fcn.004222e0
test eax, eax
je 0x42f3df
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x38]
cmp edx, eax
jne 0x42f19b
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
cmp eax, ecx
jne 0x42f19b
mov dword [esi + 0x80], 0
mov ecx, esi
call fcn.0043dd80
test eax, eax
jne 0x42f11e
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x78]
mov edx, dword [ecx + 4]
mov edi, dword [edx + eax*4]
mov ecx, dword [edi + 4]
test ecx, ecx
jle 0x42f247
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x42f11e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov edi, eax
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x78]
push eax
push esi
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
call dword [edx + 0x2c]
test edi, edi
je 0x42f312
mov edx, dword [esi + 0x78]
mov ecx, dword [esi + 0x38]
lea eax, [edx + 1]
mov dword [esi + 0x78], eax
mov ebx, dword [ecx + 4]
mov edx, dword [ebx + edx*4]
mov ebx, dword [ecx + 8]
cmp eax, ebx
mov edx, dword [edx + 4]
jge 0x42f224
test edx, edx
jle 0x42f224
mov ebx, dword [ecx + 4]
mov ebx, dword [ebx + eax*4]
add edx, dword [ebx + 4]
inc eax
mov dword [esi + 0x78], eax
mov ebx, dword [ecx + 8]
cmp eax, ebx
jl 0x42f20c
mov eax, dword [esi + 0x78]
mov edx, dword [ecx + 8]
cmp eax, edx
jge 0x42f11e
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp eax, edi
jne 0x42f11e
jmp 0x42f1d5
mov ecx, dword [esi + 0x74]
test ecx, ecx
jne 0x42f257
mov edx, dword [edi]
push eax
push esi
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [edi]
mov ebx, dword [esi + 0x74]
mov ecx, edi
call dword [eax + 8]
cmp ebx, eax
jge 0x42f2b9
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 4]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov eax, dword [eax]
push 0x4aa140
push eax
call fcn.00462206
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call fcn.00482c2a
test bl, bl
jne 0x42f2b9
mov eax, dword [esi + 0x74]
mov ecx, edi
push eax
lea edx, [eax + 1]
mov dword [esi + 0x74], edx
mov edx, dword [edi]
call dword [edx + 4]
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x42f11e
mov eax, dword [esi + 0x74]
xor ebx, ebx
cmp eax, ebx
jne 0x42f2cf
push 1
push 1
mov ecx, esi
call fcn.0043fea0
jmp 0x42f2e3
push 0x4b73a8
push 0xffffffffffffffff
push ebx
push 0x4a73fc
mov ecx, esi
call fcn.0043ef90
cmp dword [esi + 0x208], ebx
jne 0x42f308
cmp dword [esi + 0x478], ebx
jne 0x42f308
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp byte [eax], 0
je 0x42f308
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x3c0], ecx
mov dword [esi + 0x74], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x42f31a
inc dword [esi + 0x78]
jmp 0x42f11e
cmp dword [esi + 0x94], ebx
je 0x42f3cb
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 8]
cmp ecx, ebx
mov dword [esp + 0x14], edx
mov dword [esi + 0x90], ecx
je 0x42f347
mov dword [ecx], ebx
jmp 0x42f34d
mov dword [esi + 0x8c], ebx
mov ecx, dword [esi + 0x98]
mov dword [eax], ecx
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x94]
dec eax
mov dword [esi + 0x94], eax
jne 0x42f3a3
mov eax, dword [esi + 0x8c]
cmp eax, ebx
je 0x42f37a
mov eax, dword [eax]
cmp eax, ebx
jne 0x42f374
mov ecx, dword [esi + 0x9c]
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], ebx
call fcn.00481dc5
mov dword [esi + 0x9c], ebx
mov eax, dword [esi + 0x208]
mov dword [esi + 0x78], edi
cmp eax, ebx
jne 0x42f11e
cmp dword [esi + 0x478], ebx
jne 0x42f11e
mov dword [esi + 0x3c0], edi
jmp 0x42f11e
mov ecx, esi
call fcn.004222e0
test eax, eax
je 0x42f554
jmp 0x42f11e
mov eax, dword [esi + 0x1c0]
test eax, eax
je 0x42f54d
mov ebp, dword [0x4b7f88]
push 0xa
lea ecx, [esp + 0x28]
call fcn.004820f9
mov dword [esp + 0x24], 0x4979c8
mov edx, dword [0x4aca3c]
mov dword [esp + 0x48], 4
mov dword [esp + 0x54], edx
mov eax, dword [esi + 0x884]
mov byte [esp + 0x48], 5
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x50], eax
je 0x42f48b
lea ebx, [esi + 0x878]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, ebx
call fcn.0048236f
push 0xc
call fcn.00483177
add esp, 4
test eax, eax
je 0x42f471
mov ecx, dword [esp + 0x10]
mov edi, eax
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
jmp 0x42f473
xor edi, edi
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x24]
push edx
call fcn.004822a9
mov dword [eax], edi
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x42f435
push 0xfffffffffffffffd
mov ecx, esi
call fcn.00425d00
mov dword [0x4b7f88], ebp
mov eax, dword [esi + 0x884]
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x50], eax
je 0x42f4dd
lea edi, [esi + 0x878]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, edi
call fcn.0048236f
mov eax, dword [esp + 0x10]
push eax
call fcn.004831a0
mov eax, dword [esp + 0x54]
add esp, 4
test eax, eax
jne 0x42f4b2
add esi, 0x878
mov ecx, esi
call fcn.00482181
mov eax, dword [esp + 0x30]
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x50], eax
je 0x42f52c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0048236f
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, esi
call fcn.004822a9
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x42f4fa
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 4
call fcn.00482c2a
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.004821d3
jmp 0x42f554
mov ecx, esi
call fcn.004303f0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 0xc