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

Disassembly:
sub esp, 0xa4
mov eax, dword [0x47a040]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
push edi
xor edi, edi
push esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
call fcn.0043a7a0
push 2
push esi
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.0043a890
mov eax, dword [0x519bf0]
add esp, 0x14
cmp eax, edi
je 0x411604
mov esi, dword [esp + 0xc4]
xor ebp, ebp
cmp esi, edi
je 0x4114cb
mov ecx, dword [0x5511f0]
cmp ecx, edi
jle 0x41157c
mov edx, dword [esp + 0xb8]
mov eax, 0x53eca4
cmp edx, dword [eax - 4]
jne 0x4114be
cmp esi, dword [eax]
je 0x41157c
inc ebp
add eax, 0x6c
cmp ebp, ecx
jl 0x4114b1
jmp 0x41157c
mov edx, dword [0x5511f0]
cmp edx, edi
jle 0x4114ec
mov eax, 0x53eca0
lea ebx, [ebx]
cmp dword [eax], edi
je 0x4114ec
inc ebp
add eax, 0x6c
cmp ebp, edx
jl 0x4114e0
cmp ebp, edx
je 0x411515
mov ecx, dword [esp + 0x1c]
mov edx, ebp
imul edx, edx, 0x6c
push ecx
add edx, 0x53eccc
push edx
call dword [0x45e1a0]
test eax, eax
je 0x4124d6
mov edx, dword [0x5511f0]
xor eax, eax
cmp edx, edi
jle 0x41157c
mov dword [esp + 0x10], 0x53ed0c
mov ebx, 0x53eca0
cmp dword [ebx], 0xa
jne 0x411563
cmp eax, ebp
jg 0x411532
dec ebp
cmp eax, edx
jge 0x41154f
mov esi, dword [esp + 0x10]
mov ecx, edx
sub ecx, eax
imul ecx, ecx, 0x6c
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc4]
dec edx
cmp edx, eax
je 0x411576
mov ecx, dword [esp + 0x10]
dec eax
sub ebx, 0x6c
sub ecx, 0x6c
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x10]
inc eax
add edi, 0x6c
add ebx, 0x6c
cmp eax, edx
mov dword [esp + 0x10], edi
jl 0x411528
mov dword [0x5511f0], edx
mov ecx, dword [0x555a28]
mov edx, dword [esp + 0xc8]
mov eax, ebp
imul eax, eax, 0x6c
mov dword [eax + 0x53eca0], ecx
mov ecx, dword [esp + 0xcc]
mov dword [eax + 0x53ecac], edx
mov edx, dword [esp + 0xd0]
mov dword [eax + 0x53ecb0], ecx
mov ecx, dword [esp + 0xd8]
mov dword [eax + 0x53ecc4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x53eca4], esi
mov dword [eax + 0x53ecc8], ecx
push edx
lea eax, [eax + 0x53eccc]
push eax
call dword [0x45e1a8]
mov eax, dword [0x5511f0]
cmp ebp, eax
jne 0x4124d6
inc eax
cmp eax, 0x20
mov dword [0x5511f0], eax
jl 0x4124d6
push 0x1f
call fcn.00403a40
add esp, 4
jmp 0x4124d6
cmp dword [0x5511e0], edi
mov ebx, 1
je 0x41161e
mov dword [esp + 0xc0], ebx
mov dword [0x551214], ebx
mov ebp, dword [esp + 0xc4]
cmp ebp, edi
je 0x411ed1
cmp dword [0x555a4c], edi
mov esi, dword [0x5511f4]
jne 0x411661
xor ebx, ebx
cmp esi, edi
mov dword [esp + 0x24], ebx
jle 0x411665
mov eax, 0x53faac
mov ecx, esi
mov edx, 0xb
cmp dword [eax - 0xc], edx
jne 0x41165b
cmp dword [eax], edi
je 0x41165b
inc ebx
add eax, 0x6c
dec ecx
jne 0x411651
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0xb8]
xor edi, edi
test esi, esi
mov dword [esp + 0x10], edi
jle 0x411695
mov eax, 0x53faa4
jmp 0x411680
cmp ecx, dword [eax - 4]
jne 0x411689
cmp ebp, dword [eax]
je 0x411691
inc edi
add eax, 0x6c
cmp edi, esi
jl 0x411680
mov dword [esp + 0x10], edi
cmp edi, esi
je 0x41182e
mov ecx, dword [esp + 0x1c]
mov esi, edi
imul esi, esi, 0x6c
push ecx
lea edx, [esi + 0x53facc]
push edx
call dword [0x45e1a0]
test eax, eax
mov ebp, dword [esp + 0xc8]
jne 0x4116e9
cmp dword [esi + 0x53faac], ebp
jne 0x4116e9
mov eax, dword [esi + 0x53fab0]
cmp eax, dword [esp + 0xcc]
jne 0x4116e9
mov ecx, dword [esp + 0xd8]
cmp dword [esi + 0x53fac8], ecx
je 0x4124d6
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
call fcn.00437460
add esp, 8
test eax, eax
je 0x4124d6
cmp dword [esp + 0xb8], 1
mov edx, dword [esp + 0xc0]
je 0x4117df
cmp edx, 1
je 0x4117df
test ebx, ebx
jne 0x41177a
test edx, edx
jl 0x41177a
mov eax, dword [esi + 0x53faa8]
imul eax, eax, 0x84
movzx ecx, word [eax + 0x51a908]
cmp ecx, dword [esp + 0xd0]
jne 0x41177a
push 2
push 1
call fcn.0043aec0
mov dl, byte [esi + 0x53faa8]
mov ebx, eax
push 0
push 0xfffffeff
mov byte [ebx], dl
mov eax, dword [esi + 0x53faa8]
push 7
push eax
mov dword [esp + 0x44], ebx
call fcn.00401b50
add esp, 0x18
mov byte [ebx + 1], 0
jmp 0x411ffb
mov ecx, dword [0x5511e0]
test ecx, ecx
je 0x4117af
mov eax, dword [esi + 0x53faa8]
imul eax, eax, 0x84
xor ebx, ebx
mov bh, byte [eax + 0x51a8ff]
mov bl, dl
shl ebx, 0x10
or ebx, 0x101
mov dword [eax + 0x51a8fc], ebx
mov dword [eax + 0x51a8c0], ecx
mov ecx, dword [esp + 0xd4]
push ecx
mov ecx, dword [esi + 0x53faa8]
mov eax, 1
sub eax, edx
push eax
push 2
push 4
push ecx
call fcn.00401230
add esp, 0x14
mov dword [esp + 0x20], 0x400
jmp 0x411ffb
mov ecx, dword [0x5511e0]
test ecx, ecx
je 0x411814
mov eax, dword [esi + 0x53faa8]
imul eax, eax, 0x84
xor ebx, ebx
mov bh, byte [eax + 0x51a8ff]
mov bl, dl
shl ebx, 0x10
or ebx, 0x101
mov dword [eax + 0x51a8fc], ebx
mov dword [eax + 0x51a8c0], ecx
mov edx, dword [esi + 0x53faa8]
push 2
push 1
push 4
push edx
call fcn.00401b50
add esp, 0x10
jmp 0x411ffb
cmp ecx, 3
jne 0x411e89
xor ecx, ecx
xor edi, edi
test esi, esi
mov dword [esp + 0x14], ecx
jle 0x411e37
mov eax, 0x53fac4
mov edx, esi
mov ebp, 2
cmp dword [eax - 0x24], ebp
jne 0x41185f
cmp dword [eax], 0x3b
jle 0x41185e
inc edi
inc ecx
add eax, 0x6c
dec edx
jne 0x411853
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x411e37
mov eax, 0x320
cdq
lea ecx, [ecx + ecx*8]
idiv dword [ecx*4 + 0x46e038]
mov dword [0x518968], 0x12c
mov ebx, 0x32
mov dword [0x51896c], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x411be3
test edi, edi
jne 0x411be3
push 0x15f914
xor ebp, ebp
push ebp
call fcn.0043aec0
mov edx, dword [0x5510a4]
push edx
push 1
mov dword [0x5510a0], eax
call fcn.0043b010
mov esi, eax
mov eax, dword [0x5510a0]
push eax
push 1
call fcn.0043b010
mov edi, eax
mov ecx, 0x57e45
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5510a4]
push ecx
push 2
call fcn.0043b010
mov edx, dword [0x5510a0]
push edx
push 2
call fcn.0043b010
mov eax, dword [0x5511f4]
add esp, 0x28
test eax, eax
mov dword [0x55100c], ebp
jle 0x411a1a
mov esi, 0x53faa8
jmp 0x411920
cmp dword [esi - 8], 1
jne 0x411a09
mov eax, dword [esi]
imul eax, eax, 0x84
cmp dword [eax + 0x51a8a0], 0xa
jne 0x411a09
cmp dword [esi + 0x1c], 0x32
jge 0x411a09
xor eax, eax
mov ecx, 0x21
mov edi, 0x5183c0
rep stosd dword es:[edi], eax
push 2
lea ecx, [esi + 0x24]
push ecx
lea edx, [esp + 0x78]
push 0x40
push edx
call fcn.0043a890
lea eax, [esp + 0x80]
push eax
push 0xffffffffffffffff
call fcn.00437460
add esp, 0x18
test eax, eax
je 0x4124d6
lea ecx, [esp + 0x70]
push ecx
call fcn.0043b4f0
mov edx, dword [0x5510a0]
mov ecx, dword [esi + 4]
mov dword [0x5183c4], eax
mov eax, dword [0x4cdd08]
shr eax, 1
sub ecx, eax
mov eax, dword [esi + 8]
mov dword [0x5183e0], edx
mov edx, dword [0x4cdd0c]
mov dword [0x5183e4], ecx
mov ecx, dword [esi + 0x20]
shr edx, 1
sub eax, edx
mov dx, word [esi + 0x1c]
shl ecx, 0x18
or edi, 0xffffffff
or ecx, 0x10001
push 0x5183c0
mov dword [0x5183e8], eax
mov dword [0x5183fc], edi
mov dword [0x518400], edi
mov dword [0x51841c], ecx
mov word [0x518428], dx
call fcn.004016c0
add esp, 8
cmp eax, edi
jne 0x411a09
push 0x1e
call fcn.00403a40
add esp, 4
mov eax, dword [0x5511f4]
inc ebp
add esi, 0x6c
cmp ebp, eax
jl 0x411920
test eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], 0
jle 0x411b82
mov esi, 0x53facc
jmp 0x411a40
cmp dword [esi - 0x2c], 2
jne 0x411b68
mov eax, dword [esi - 0x24]
push 0
push 0
push 0
push 4
push eax
call fcn.00401230
push 2
xor eax, eax
mov ecx, 0x21
mov edi, 0x5183c0
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x8c]
push 0x40
push ecx
call fcn.0043a890
lea edx, [esp + 0x94]
push edx
push 0xffffffffffffffff
call fcn.00437460
add esp, 0x2c
test eax, eax
je 0x4124d6
lea eax, [esp + 0x70]
push eax
call fcn.0043b4f0
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x5510a0]
mov dword [0x5183c4], eax
mov eax, dword [esp + 0x18]
lea ebp, [edx + eax*8]
mov edx, dword [0x4cdd0c]
add ebp, eax
mov eax, dword [ebp*4 + 0x46e038]
imul eax, dword [0x51896c]
lea ebp, [ebp*4 + 0x46e038]
mov dword [0x5183e0], ecx
mov ecx, dword [0x4cdd08]
shr ecx, 1
sub eax, ecx
mov ecx, dword [esi - 4]
mov dword [0x5183e4], eax
mov eax, dword [0x518968]
shr edx, 1
sub eax, edx
shl ecx, 0x18
mov dword [0x5183e8], eax
or eax, 0xffffffff
or ecx, 0x10101
mov dword [esi - 8], ebx
mov word [0x518428], bx
push 0x5183c0
mov dword [0x5183fc], eax
mov dword [0x518400], eax
mov dword [0x51841c], ecx
inc ebx
call fcn.004016c0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x411b3d
push 0x1e
call fcn.00403a40
add esp, 4
mov edx, dword [ebp]
mov eax, dword [0x55100c]
imul edx, dword [0x51896c]
mov dword [eax*4 + 0x551020], edi
inc eax
mov dword [0x55100c], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esi - 0x24], edi
mov dword [esi - 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [0x5511f4]
inc eax
add esi, 0x6c
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x411a40
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.00437460
add esp, 8
test eax, eax
je 0x4124d6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
lea edx, [ecx + eax*8]
add edx, eax
mov ebp, dword [edx*4 + 0x46e038]
mov eax, dword [0x518968]
imul ebp, dword [0x51896c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xb8], 2
mov dword [esp + 0x14], 1
jmp 0x411ffb
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], 0
mov ebp, 0x53faa8
jmp 0x411c00
cmp dword [ebp - 8], 2
jne 0x411da9
mov edi, dword [esp + 0xc0]
mov edx, dword [esp + 0xd4]
mov eax, dword [ebp]
xor ecx, ecx
cmp edi, 6
setne cl
push edx
dec ecx
and ecx, 5
add ecx, 2
mov esi, ecx
push esi
push 2
push 4
push eax
call fcn.00401230
mov eax, dword [ebp]
imul eax, eax, 0x84
mov ecx, dword [eax + 0x51a900]
lea eax, [eax + 0x51a900]
or ecx, 2
mov dword [eax], ecx
xor eax, eax
mov ecx, 0x21
mov edi, 0x5183c0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd4]
add esp, 0x14
cmp eax, 6
jne 0x411c95
mov ecx, dword [esp + 0xd4]
mov esi, 0xc
mov dword [0x51840c], ecx
mov dword [0x518410], 0
mov dword [0x518414], 0xff
push 2
lea eax, [ebp + 0x24]
push eax
lea edx, [esp + 0x78]
push 0x40
push edx
call fcn.0043a890
lea eax, [esp + 0x80]
push eax
push 0xffffffffffffffff
call fcn.00437460
add esp, 0x18
test eax, eax
je 0x4124d6
lea ecx, [esp + 0x70]
push ecx
call fcn.0043b4f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x5421c8]
mov dword [0x5183c4], eax
mov eax, dword [esp + 0x18]
lea edi, [ecx + eax*8]
mov ecx, dword [0x4cdd0c]
add edi, eax
mov eax, dword [0x4cdd08]
mov dword [0x5183e0], edx
mov edx, dword [edi*4 + 0x46e038]
imul edx, dword [0x51896c]
lea edi, [edi*4 + 0x46e038]
shr eax, 1
sub edx, eax
or eax, 0xffffffff
mov dword [0x5183fc], eax
mov dword [0x518400], eax
mov eax, dword [ebp + 0x20]
shr ecx, 1
shl eax, 8
mov dword [0x5183e4], edx
mov edx, dword [0x518968]
sub edx, ecx
mov ecx, dword [0x5421cc]
and esi, 0xff
or eax, esi
shl eax, 0x10
and ecx, 0xfafe
or eax, ecx
or eax, 0x501
mov dword [ebp + 0x1c], ebx
mov word [0x518428], bx
push 0x5183c0
mov dword [0x5183e8], edx
mov dword [0x51841c], eax
mov word [0x518438], 0xffff
inc ebx
call fcn.004016c0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x411d8b
push 0x1e
call fcn.00403a40
add esp, 4
mov edx, dword [edi]
imul edx, dword [0x51896c]
mov eax, dword [esp + 0x18]
inc eax
mov dword [ebp], esi
mov esi, dword [0x5511f4]
mov dword [ebp + 4], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
inc eax
add ebp, 0x6c
cmp eax, esi
mov dword [esp + 0x28], eax
jl 0x411c00
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.00437460
add esp, 8
test eax, eax
je 0x4124d6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*8]
add edx, eax
mov ebp, dword [edx*4 + 0x46e038]
mov eax, dword [0x518968]
imul ebp, dword [0x51896c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xb8], 2
cmp dword [esp + 0xc0], 6
jne 0x411ec0
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc0], 0xfffffffa
mov dword [esp + 0x14], 1
jmp 0x411ffb
lea ecx, [esp + 0x30]
push ecx
push 0xffffffffffffffff
call fcn.00437460
add esp, 8
test eax, eax
je 0x4124d6
mov eax, dword [0x46e03c]
imul eax, eax, 0x320
cdq
idiv dword [0x46e038]
test ebx, ebx
mov dword [esp + 0xcc], 0x12c
mov dword [esp + 0xd0], 0x32
mov dword [esp + 0xb8], 2
mov ebp, eax
je 0x411ec0
jmp 0x411e0d
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
call fcn.00437460
add esp, 8
test eax, eax
je 0x4124d6
test ebx, ebx
je 0x411eb9
cmp dword [esp + 0xc0], 6
jne 0x411eb9
mov dword [esp + 0xc0], 0xfffffffa
mov ebp, dword [esp + 0xc8]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], 1
jmp 0x411ffb
cmp dword [esp + 0xb8], edi
jne 0x411fe6
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.00437460
add esp, 8
test eax, eax
je 0x4124d6
test byte [0x4cdd04], 1
jne 0x411f08
push 0x3a
call fcn.00403a40
add esp, 4
cmp dword [0x4cdd08], 0x320
jb 0x411f20
cmp dword [0x4cdd0c], 0x258
jae 0x411f2a
push 0x32
call fcn.00403a40
add esp, 4
mov edx, dword [0x5511f4]
xor edi, edi
test edx, edx
mov dword [esp + 0x10], edi
jle 0x411f51
mov eax, 0x53faa0
nop
cmp dword [eax], 0
je 0x411f4d
inc edi
add eax, 0x6c
cmp edi, edx
jl 0x411f40
mov dword [esp + 0x10], edi
cmp edi, edx
je 0x411f85
mov eax, edi
imul eax, eax, 0x6c
cmp dword [eax + 0x53faa8], 0xfffffffd
je 0x411f8d
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [eax + 0x53facc]
push edx
call dword [0x45e1a0]
test eax, eax
je 0x4124d6
mov edx, dword [0x5511f4]
jmp 0x411f8d
mov dword [esp + 0x14], 1
xor eax, eax
test edx, edx
jle 0x411ff4
mov ebx, 0x53fb0c
mov ebp, 0x53faa0
lea ecx, [ecx]
cmp dword [ebp], 0xa
jne 0x411fd9
cmp eax, edi
jg 0x411faf
dec edi
mov dword [esp + 0x10], edi
cmp eax, edx
jge 0x411fc7
mov ecx, edx
sub ecx, eax
imul ecx, ecx, 0x6c
shr ecx, 2
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
dec edx
cmp edx, eax
mov dword [0x5511f4], edx
je 0x411ff4
dec eax
sub ebp, 0x6c
sub ebx, 0x6c
inc eax
add ebp, 0x6c
add ebx, 0x6c
cmp eax, edx
jl 0x411fa0
jmp 0x411ff4
mov edi, dword [0x5511f4]
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0xc8]
mov eax, dword [0x5511e0]
test eax, eax
je 0x41201d
mov eax, dword [0x5510b0]
mov ecx, dword [esp + 0xd0]
mov dword [eax*4 + 0x5510c0], ecx
inc eax
mov dword [0x5510b0], eax
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xcc]
mov ecx, dword [0x4cdd08]
mov esi, edi
mov edi, dword [esp + 0xb8]
imul esi, esi, 0x6c
mov dword [esi + 0x53faa4], edx
mov edx, dword [0x4cdd0c]
mov dword [esi + 0x53fab0], eax
mov eax, dword [esp + 0xd0]
mov dword [esi + 0x53fab8], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x53fac4], eax
mov dword [esi + 0x53fab4], ecx
mov ecx, dword [esp + 0xd8]
push edx
lea eax, [esi + 0x53facc]
push eax
mov dword [esi + 0x53faa0], edi
mov dword [esi + 0x53faac], ebp
mov dword [esi + 0x53fac8], ecx
call dword [0x45e1a8]
mov eax, dword [0x5511f4]
add eax, dword [esp + 0x14]
cmp eax, 0x20
mov dword [0x5511f4], eax
jl 0x4120b0
push 0x1f
call fcn.00403a40
add esp, 4
lea ecx, [esp + 0x30]
push ecx
call fcn.00410580
add esp, 4
test edi, edi
jne 0x4120e0
push 2
push edi
call fcn.0041ce90
lea edx, [esp + 0x38]
push edx
push 0xffffffffffffffff
call fcn.00437460
add esp, 0x10
test eax, eax
je 0x4124d6
mov eax, dword [0x5510a0]
test eax, eax
je 0x4122ba
xor eax, eax
mov ecx, 0x21
mov edi, 0x5183c0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
call fcn.0043b4f0
mov ecx, dword [0x5510a0]
mov edx, dword [0x4cdd08]
mov dword [0x5183c4], eax
mov eax, dword [esp + 0xd0]
mov dword [0x5183e0], ecx
mov ecx, dword [0x4cdd0c]
shr ecx, 1
sub eax, ecx
mov dword [0x5183e8], eax
mov eax, dword [esp + 0xdc]
shr edx, 1
sub ebp, edx
mov dx, word [esp + 0xd4]
shl eax, 0x18
mov dword [0x5183e4], ebp
or ebp, 0xffffffff
or eax, 0x10101
mov ebx, 0xffff
push 0x5183c0
mov dword [0x5183fc], ebp
mov dword [0x518400], ebp
mov dword [0x51841c], eax
mov word [0x518438], bx
mov word [0x518428], dx
call fcn.004016c0
add esp, 8
cmp eax, ebp
mov dword [0x519c3c], eax
jne 0x41219f
push 0x1e
call fcn.00403a40
mov eax, dword [0x519c3c]
add esp, 4
mov ecx, dword [0x55100c]
mov dword [ecx*4 + 0x551020], eax
inc ecx
mov dword [esi + 0x53faa8], eax
mov dword [0x55100c], ecx
xor eax, eax
mov ecx, 0x21
mov edi, 0x5183c0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc0]
xor esi, esi
cmp eax, 6
jne 0x4121fc
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc0], 0xc
mov dword [0x51840c], eax
mov dword [0x518410], esi
mov dword [0x518414], 0xff
mov ecx, dword [0x5510a0]
mov eax, dword [0x5421cc]
mov edx, dword [0x5421c8]
mov dword [0x5183c4], ecx
mov ecx, dword [esp + 0xc0]
and eax, 0xff7d
shl ecx, 0x10
or eax, ecx
or eax, 0xff000082
push 0x5183c0
mov dword [0x5183e0], edx
mov dword [0x5183e4], esi
mov dword [0x5183e8], esi
mov dword [0x5183fc], ebp
mov dword [0x518400], ebp
mov dword [0x51841c], eax
mov word [0x518438], bx
mov word [0x518428], 0x3b
call fcn.004016c0
add esp, 4
cmp eax, ebp
mov dword [0x519c3c], eax
jne 0x41227c
push 0x1e
call fcn.00403a40
add esp, 4
mov ecx, dword [esp + 0xc0]
mov eax, dword [0x542350]
xor edx, edx
cmp ecx, 1
sete dl
cmp eax, 0x14
mov dword [0x551008], edx
jne 0x4122a5
mov dword [0x551008], 2
mov dword [0x542350], 0x1c
mov dword [0x5510a0], esi
jmp 0x4124cc
mov eax, dword [esp + 0xc0]
test eax, eax
jge 0x4122dc
mov edx, dword [esp + 0x20]
or edx, 0x400
neg eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xc0], eax
xor eax, eax
mov ecx, 0x21
mov edi, 0x5183c0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb8]
xor ebx, ebx
cmp eax, ebx
jne 0x412301
mov dword [0x518420], 1
mov eax, dword [esp + 0xc0]
cmp eax, 6
mov edi, dword [esp + 0xd8]
jne 0x41234b
mov eax, dword [esp + 0xd4]
mov dword [0x51840c], eax
cmp dword [esp + 0x24], ebx
mov dword [esp + 0xc0], 0xc
mov dword [0x518410], ebx
je 0x41233f
mov dword [0x518414], edi
jmp 0x412371
mov dword [0x518414], 0xff
jmp 0x412371
cmp eax, 0x22
jne 0x412371
mov ecx, dword [esp + 0xd4]
mov dword [0x51840c], 0x20
mov dword [0x518410], 0xf0
mov dword [0x518414], ecx
lea edx, [esp + 0x30]
push edx
call fcn.0043b4f0
mov ecx, dword [0x5511e0]
add esp, 4
cmp ecx, ebx
mov dword [0x5183c4], eax
je 0x412395
mov dword [0x5183e0], ecx
jmp 0x41239f
mov eax, dword [0x5421c8]
mov dword [0x5183e0], eax
mov edx, dword [0x4cdd08]
mov eax, dword [esp + 0xcc]
mov ebx, dword [esp + 0xc4]
shr edx, 1
sub ebp, edx
mov edx, dword [0x4cdd0c]
shr edx, 1
sub eax, edx
mov dword [0x5183e4], ebp
or ebp, 0xffffffff
test ebx, ebx
mov dword [0x5183e8], eax
mov eax, dword [esp + 0x20]
mov dword [0x5183fc], ebp
mov dword [0x518400], ebp
je 0x4123e8
or eax, 0x100
shl edi, 8
test ecx, ecx
je 0x412413
mov ecx, dword [esp + 0xc0]
and ecx, 0xff
or ecx, edi
shl ecx, 0x10
and eax, 0xfffe
or ecx, eax
or ecx, 1
mov dword [0x51841c], ecx
jmp 0x41243e
mov edx, dword [esp + 0xc0]
mov ecx, dword [0x5421cc]
and edx, 0xff
or edx, edi
or ecx, eax
shl edx, 0x10
and ecx, 0xfffe
or edx, ecx
or edx, 1
mov dword [0x51841c], edx
mov dx, word [esp + 0xd0]
mov eax, dword [esp + 0x2c]
push 0x5183c0
mov word [0x518438], 0xffff
mov word [0x518428], dx
mov dword [0x518440], eax
call fcn.004016c0
add esp, 4
cmp eax, ebp
mov dword [0x519c3c], eax
jne 0x412484
push 0x1e
call fcn.00403a40
mov eax, dword [0x519c3c]
add esp, 4
test ebx, ebx
je 0x4124ae
mov ecx, dword [0x5511e0]
test ecx, ecx
je 0x4124a6
mov ecx, dword [0x551144]
mov dword [ecx*4 + 0x551160], eax
inc ecx
mov dword [0x551144], ecx
mov dword [esi + 0x53faa8], eax
jmp 0x4124b8
mov dword [esi + 0x53faa8], 0xfffffffe
cmp dword [esp + 0xc0], 1
je 0x4124d6
mov dword [0x542350], 8
mov dword [0x46dfb4], 0x1e
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450905
add esp, 0xa4
ret