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

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, dword [0x460020]
push edi
mov edi, eax
mov dword [esp + 0x28], esi
call fcn.004108e0
lea eax, [esp + 0x90]
mov edx, 2
or esi, 0xffffffff
lea ebx, [ebx]
mov ecx, 5
mov dword [eax + 4], esi
mov dword [eax], esi
add eax, 8
sub ecx, 1
jne 0x410975
sub edx, 1
jne 0x410970
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
xor eax, eax
cmp dword [esp + 0x16c], 0x11
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 4
mov dword [eax + 0xae4], edi
lea ebx, [ecx + 7]
lea ebp, [ecx + 6]
ja case.default.0x41197f
mov ecx, dword [esp + 0x16c]
movzx edx, byte [ecx + 0x4121e8]
jmp dword [edx*4 + 0x4121c4]
push 0x34
xor ebp, ebp
lea eax, [esp + 0x128]
push ebp
push eax
mov byte [esp + 0x1f], 0
call fcn.0043c620
add esp, 0xc
cmp edi, 0xffffffff
jne 0x410f40
call fcn.0043bc60
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x14
jge 0x410d5b
call fcn.0043bc60
mov edi, eax
and edi, 0x80000007
jns 0x410ad1
dec edi
or edi, 0xfffffff8
inc edi
call fcn.0043bc60
mov esi, eax
and esi, 0x80000003
jns 0x410ae5
dec esi
or esi, 0xfffffffc
inc esi
mov dword [esp + 0x14], ebp
mov ebp, 4
mov ebx, 5
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], ebp
nop
call fcn.0043bc60
cdq
idiv ebx
mov eax, dword [esp + edx*4 + 0x14]
add eax, eax
add eax, eax
add eax, eax
dec ebx
mov dword [esp + eax + 0x94], edi
mov dword [esp + eax + 0x90], esi
inc edi
lea ecx, [esp + edx*4 + 0x14]
mov edx, dword [esp + ebx*4 + 0x14]
mov dword [ecx], edx
call fcn.0043bc60
and eax, 0x80000001
jns 0x410b4d
dec eax
or eax, 0xfffffffe
inc eax
lea esi, [esi + eax + 1]
cmp esi, 4
jl 0x410b58
xor esi, esi
sub ebp, 1
jne 0x410b10
mov ebx, dword [esp + 0x14]
add ebx, ebx
add ebx, ebx
add ebx, ebx
call fcn.0043bc60
cmp edi, 8
jl 0x410b82
cdq
mov ecx, 3
idiv ecx
mov dword [esp + ebx + 0x94], edx
jmp 0x410b98
and eax, 0x80000003
jns 0x410b8e
dec eax
or eax, 0xfffffffc
inc eax
add eax, 9
mov dword [esp + ebx + 0x94], eax
mov dword [esp + ebx + 0x90], esi
call fcn.0043bc60
and eax, 0x80000001
jns 0x410bb0
dec eax
or eax, 0xfffffffe
inc eax
lea esi, [esi + eax + 1]
cmp esi, 4
jl 0x410bbb
xor esi, esi
call fcn.0043bc60
cmp edi, 8
jl 0x410bd6
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0xbc], edx
jmp 0x410bec
and eax, 0x80000003
jns 0x410be2
dec eax
or eax, 0xfffffffc
inc eax
add eax, 9
mov dword [esp + 0xbc], eax
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xb8], esi
lea ebx, [esp + 0xc0]
mov dword [esp + 0x48], 4
jmp 0x410c10
mov eax, dword [ebp + 0xae8]
or esi, 0xffffffff
or edi, esi
test eax, eax
jle 0x410c56
cmp eax, 0x34
jg 0x410c56
mov esi, eax
call fcn.0043bc60
cdq
idiv esi
mov eax, dword [ebp + 0x810]
lea ecx, [esi - 1]
mov dword [ebp + 0xae8], ecx
mov ebp, dword [eax + ecx*8]
mov esi, dword [eax + edx*8]
mov edi, dword [eax + edx*8 + 4]
mov dword [eax + edx*8], ebp
mov ecx, dword [eax + ecx*8 + 4]
mov ebp, dword [esp + 0x28]
mov dword [eax + edx*8 + 4], ecx
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
sub dword [esp + 0x48], 1
jne 0x410c10
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x98]
lea ecx, [ebx + 0x81c]
mov edx, 2
jmp 0x410c80
mov esi, dword [eax - 8]
mov dword [ecx - 8], esi
mov esi, dword [eax - 4]
mov dword [ecx - 4], esi
mov esi, dword [eax]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 0xc], esi
mov esi, dword [eax + 0x10]
mov dword [ecx + 0x10], esi
mov esi, dword [eax + 0x14]
mov dword [ecx + 0x14], esi
mov esi, dword [eax + 0x18]
mov dword [ecx + 0x18], esi
mov esi, dword [eax + 0x1c]
mov dword [ecx + 0x1c], esi
add eax, 0x28
add ecx, 0x28
sub edx, 1
jne 0x410c80
lea ecx, [ebx + 0x814]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
cmp dword [ecx + 4], 0
jl 0x410cde
cmp dword [ecx], 0
jge 0x410d37
cmp dword [esp + 0x16c], 0xe
jl 0x412155
mov eax, dword [ebx + 0xae8]
or esi, 0xffffffff
or edi, esi
test eax, eax
jle 0x410d32
cmp eax, 0x34
jg 0x410d32
mov esi, eax
call fcn.0043bc60
cdq
idiv esi
mov eax, dword [ebx + 0x810]
lea ecx, [esi - 1]
mov dword [ebx + 0xae8], ecx
mov ebp, dword [eax + ecx*8]
mov esi, dword [eax + edx*8]
mov edi, dword [eax + edx*8 + 4]
mov dword [eax + edx*8], ebp
mov ecx, dword [eax + ecx*8 + 4]
mov dword [eax + edx*8 + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov eax, dword [esp + 0x40]
inc eax
add ecx, 8
cmp eax, 0xa
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jl 0x410cd3
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 4
mov ebx, dword [esp + 0x28]
xor edi, edi
mov eax, dword [ebx + 0xae8]
or esi, 0xffffffff
mov dword [esp + 0x30], esi
test eax, eax
jle 0x410dad
cmp eax, 0x34
jg 0x410dad
mov esi, eax
call fcn.0043bc60
cdq
idiv esi
mov eax, dword [ebx + 0x810]
lea ecx, [esi - 1]
mov dword [ebx + 0xae8], ecx
mov ebx, dword [eax + ecx*8]
mov esi, dword [eax + edx*8]
mov dword [esp + 0x30], esi
mov esi, dword [eax + edx*8 + 4]
mov dword [eax + edx*8], ebx
mov ecx, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0x28]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [esp + 0x30]
cmp dword [esp + eax*4 + 0x78], 3
lea eax, [esp + eax*4 + 0x78]
mov dword [esp + 0x44], eax
jge 0x410eb8
mov edx, dword [esp + esi*4 + 0xf0]
cmp edx, 2
lea eax, [esp + esi*4 + 0xf0]
mov dword [esp + 0x40], eax
jge 0x410eb8
cmp edx, 1
jne 0x410dfb
test ebp, ebp
je 0x410eb8
cmp edx, edx
jne 0x410dfb
cmp esi, 8
jg 0x410eb8
cmp edx, edx
jl 0x410e08
cmp byte [esp + 0x13], 0
jne 0x410eb8
cmp edx, 1
jne 0x410e33
cmp edi, 5
jl 0x410e33
xor eax, eax
test edi, edi
jl 0x410e33
lea ecx, [ebp + ebp*4]
lea ecx, [esp + ecx*8 + 0x94]
cmp dword [ecx], esi
je 0x410eb8
inc eax
add ecx, 8
cmp eax, edi
jle 0x410e23
mov ecx, 1
xor eax, eax
lea ebx, [ebx]
test eax, eax
jle 0x410e65
cmp dword [esp + eax*4 + 0x120], 1
jl 0x410f1e
cmp dword [esp + eax*4 + 0x124], 1
jge 0x410e64
cmp esi, eax
jne 0x410f1e
inc ecx
cmp ecx, 3
jge 0x410eb8
inc eax
cmp eax, 0xd
jl 0x410e40
mov ecx, dword [esp + 0x30]
inc dword [esp + esi*4 + 0x124]
lea eax, [edi + ebp*4]
add eax, ebp
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + eax + 0x90], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + eax + 0x94], esi
lea eax, [esp + esi*4 + 0x124]
lea eax, [edx + 1]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
mov edx, dword [ecx]
inc edx
inc edi
cmp eax, 2
mov dword [ecx], edx
jl 0x410eb8
mov byte [esp + 0x13], 1
cmp edi, 5
jge 0x410f31
cmp dword [ebx + 0xae8], 5
jg 0x410d61
push 0x34
xor edi, edi
lea eax, [esp + 0xf4]
push edi
push eax
xor ebp, ebp
call fcn.0043c620
xor eax, eax
add esp, 0xc
push 0x34
push eax
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.0043c620
add esp, 0xc
mov esi, ebx
call fcn.004108e0
jmp 0x410d61
cmp ecx, 5
jge 0x410e65
mov ecx, 1
jmp 0x410e6a
inc ebp
cmp ebp, 2
jl 0x410d5b
jmp 0x410c65
mov edx, dword [esp + 0x28]
mov eax, edi
sub eax, ebp
mov dword [edx + 0xae4], ebp
je 0x4111f7
sub eax, 1
je 0x411085
sub eax, 1
jne 0x410c65
call fcn.0043bc60
cdq
mov ecx, 9
idiv ecx
mov ebx, edx
call fcn.0043bc60
mov esi, eax
and esi, 0x80000003
jns 0x410f89
dec esi
or esi, 0xfffffffc
inc esi
mov dword [esp + 0x14], ebp
mov ebp, 4
mov edi, 5
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], ebp
call fcn.0043bc60
cdq
idiv edi
mov eax, dword [esp + edx*4 + 0x14]
add eax, eax
add eax, eax
add eax, eax
dec edi
mov dword [esp + eax + 0x94], ebx
inc ebx
sub ebp, 1
mov dword [esp + eax + 0x90], esi
lea ecx, [esp + edx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x14]
mov dword [ecx], edx
jne 0x410fb3
inc esi
cmp esi, 4
jl 0x410fec
xor esi, esi
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
lea ebx, [ebx + edx + 2]
cmp ebx, 0xd
jl 0x411005
sub ebx, 0xd
mov eax, dword [esp + 0x14]
mov dword [esp + eax*8 + 0x94], ebx
mov dword [esp + eax*8 + 0x90], esi
inc esi
cmp esi, 4
jl 0x41101f
xor esi, esi
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
lea eax, [ebx + edx + 2]
cmp eax, 0xd
jl 0x411038
sub eax, 0xd
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], esi
lea edi, [esp + 0xc0]
mov ebx, 4
jmp 0x411060
lea esi, [esp + 0xe8]
mov eax, ebp
call fcn.004106f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi], edx
mov dword [edi + 4], eax
add edi, 8
sub ebx, 1
jne 0x411060
jmp 0x410c65
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
mov ebx, edx
call fcn.0043bc60
mov esi, eax
and esi, 0x80000003
jns 0x4110a8
dec esi
or esi, 0xfffffffc
inc esi
mov dword [esp + 0x14], ebp
mov ebp, 3
mov edi, 5
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 4
call fcn.0043bc60
cdq
idiv edi
mov eax, dword [esp + edx*4 + 0x14]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + eax + 0x94], ebx
dec edi
mov dword [esp + eax + 0x90], esi
inc esi
cmp esi, 4
lea ecx, [esp + edx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x14]
mov dword [ecx], edx
jl 0x411105
xor esi, esi
sub ebp, 1
jne 0x4110d2
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
lea edi, [ebx + edx + 1]
cmp edi, 0xd
jl 0x411123
sub edi, 0xd
inc esi
cmp esi, 4
jl 0x41112b
xor esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + eax*8 + 0x94], edi
mov dword [esp + eax*8 + 0x90], esi
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
lea eax, [edi + edx + 1]
cmp eax, 0xd
jl 0x411156
sub eax, 0xd
inc esi
cmp esi, 4
jl 0x41115e
xor esi, esi
mov ecx, dword [esp + 0x18]
mov dword [esp + ecx*8 + 0x94], eax
mov dword [esp + ecx*8 + 0x90], esi
inc esi
cmp esi, 4
jl 0x411178
xor esi, esi
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
mov edi, edx
mov dword [esp + 0xbc], edi
cmp ebx, edi
je 0x411178
mov dword [esp + 0xb8], esi
inc esi
cmp esi, 4
jl 0x4111a1
xor esi, esi
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
mov dword [esp + 0xc4], edx
cmp ebx, edx
je 0x4111a1
cmp edi, edx
je 0x4111a1
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc0], esi
lea edi, [esp + 0xc8]
lea ebx, [ecx - 0xa]
lea esi, [esp + 0xe0]
mov eax, ebp
call fcn.004106f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi], edx
mov dword [edi + 4], eax
add edi, 8
sub ebx, 1
jne 0x4111d2
jmp 0x410c65
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
mov esi, edx
call fcn.0043bc60
mov ebx, eax
and ebx, 0x80000003
jns 0x41121a
dec ebx
or ebx, 0xfffffffc
inc ebx
mov dword [esp + 0x14], ebp
mov ebp, 4
mov edi, 5
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], ebp
call fcn.0043bc60
cdq
idiv edi
mov eax, dword [esp + edx*4 + 0x14]
add eax, eax
add eax, eax
add eax, eax
dec edi
mov dword [esp + eax + 0x94], esi
mov dword [esp + eax + 0x90], ebx
lea ecx, [esp + edx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x14]
mov dword [ecx], edx
call fcn.0043bc60
and eax, 0x80000001
jns 0x411280
dec eax
or eax, 0xfffffffe
inc eax
sub ebp, 1
lea esi, [esi + eax + 1]
jne 0x411244
call fcn.0043bc60
and eax, 0x80000001
jns 0x41129a
dec eax
or eax, 0xfffffffe
inc eax
lea edi, [ebx + eax + 1]
cmp edi, 4
jl 0x4112a6
sub edi, 4
mov eax, dword [esp + 0x14]
mov dword [esp + eax*8 + 0x94], esi
mov dword [esp + eax*8 + 0x90], edi
inc edi
cmp edi, 4
jl 0x4112c0
xor edi, edi
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xb8], edi
lea edi, [esp + 0xc0]
lea ebx, [ecx - 9]
mov dword [esp + 0xbc], edx
lea esp, [esp]
lea esi, [esp + 0x88]
mov eax, ebp
call fcn.004106f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi], edx
mov dword [edi + 4], eax
add edi, 8
sub ebx, 1
jne 0x4112f0
jmp 0x410c65
call fcn.0043bc60
and eax, 0x80000003
jns 0x411326
dec eax
or eax, 0xfffffffc
inc eax
add eax, 9
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], 2
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov edi, dword [esp + 0x28]
mov esi, edx
mov dword [esp + 0x14], esi
call fcn.0043bc60
cdq
mov ecx, ebx
idiv ecx
cmp byte [edi + 0xaf4], 0
mov dword [esp + 0x18], edx
je 0x411378
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov dword [esp + 0x18], edx
cmp esi, edx
je 0x411350
cmp edx, 5
jl case.default.0x41197f
mov byte [esp + 0x3b], 1
jmp case.default.0x41197f
mov dword [esp + 0x2c], 4
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
mov edi, dword [esp + 0x28]
cmp byte [edi + 0xaf4], 0
mov esi, edx
je 0x4113ca
call fcn.0043bc60
mov esi, eax
and esi, 0x80000003
jns 0x4113c7
dec esi
or esi, 0xfffffffc
inc esi
add esi, 9
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
cmp byte [edi + 0xaf4], 0
mov eax, edx
je 0x4113fe
call fcn.0043bc60
and eax, 0x80000003
jns 0x4113fb
dec eax
or eax, 0xfffffffc
inc eax
add eax, 9
cmp eax, esi
je 0x4113d2
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
xor bl, bl
mov dword [esp + 0x14], edx
call fcn.0043bc60
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x3c
jge 0x411439
cmp byte [edi + 0xaf4], bl
jne 0x411439
mov bl, 1
mov esi, 1
mov edi, edi
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
test bl, bl
je 0x411477
cmp esi, 1
jle 0x411477
cmp byte [edi + 0xaf4], 0
jne 0x411477
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, 5
mov dword [esp + esi*4 + 0x14], edx
xor eax, eax
test esi, esi
jle 0x41148c
mov ecx, dword [esp + esi*4 + 0x14]
cmp ecx, dword [esp + eax*4 + 0x14]
je 0x411440
inc eax
cmp eax, esi
jl 0x411481
inc esi
cmp esi, 4
jl 0x411440
jmp case.default.0x41197f
mov dword [esp + 0x2c], 3
call fcn.0043bc60
cdq
mov ecx, 9
idiv ecx
mov eax, dword [esp + 0x16c]
cmp eax, 4
je 0x4114d2
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0xaf4], 0
je 0x41157e
cmp eax, 5
je 0x411587
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, 9
cmp edx, 9
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], edx
jl 0x4114f8
call fcn.0043bc60
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
xor bl, bl
mov dword [esp + 0x14], edx
call fcn.0043bc60
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x3c
jge 0x41152b
mov edx, dword [esp + 0x28]
cmp byte [edx + 0xaf4], bl
jne 0x41152b
mov bl, 1
mov esi, 1
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
test bl, bl
je 0x41155e
cmp esi, 1
jle 0x41155e
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, 5
mov dword [esp + esi*4 + 0x14], edx
xor eax, eax
test esi, esi
jle 0x411573
mov ecx, dword [esp + esi*4 + 0x14]
cmp ecx, dword [esp + eax*4 + 0x14]
je 0x411530
inc eax
cmp eax, esi
jl 0x411568
inc esi
cmp esi, 3
jl 0x411530
jmp case.default.0x41197f
cmp eax, 5
jne 0x4114e2
mov edx, 0xc
jmp 0x4114e2
mov dword [esp + 0x2c], 5
call fcn.0043bc60
and eax, 0x80000007
jns 0x4115aa
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, dword [esp + 0x16c]
cmp ecx, ebx
jne 0x4115b9
xor eax, eax
jmp 0x4115c0
cmp ecx, 8
jne 0x4115c0
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x58], edx
lea edx, [eax + 2]
mov dword [esp + 0x60], edx
lea edx, [eax + 3]
mov dword [esp + 0x50], eax
add eax, 4
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], eax
cmp ecx, ebx
jne 0x4115ec
mov dword [esp + 0x70], 0xc
xor bl, bl
or edi, 0xffffffff
call fcn.0043bc60
cdq
idiv ebp
mov dword [esp + 0x14], edx
call fcn.0043bc60
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0xaa
jge 0x411617
lea edi, [ecx - 0x60]
mov bl, 1
mov esi, 1
lea ebp, [esi + 4]
nop
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
cmp dword [esp + 0x14], ebp
jge 0x411640
test bl, bl
je 0x411640
cmp esi, edi
jne 0x411640
mov dword [esp + esi*4 + 0x14], ebp
xor eax, eax
test esi, esi
jle 0x41165b
mov ecx, dword [esp + esi*4 + 0x14]
lea ebx, [ebx]
cmp ecx, dword [esp + eax*4 + 0x14]
je 0x411620
inc eax
cmp eax, esi
jl 0x411650
inc esi
cmp esi, ebp
jl 0x411620
jmp case.default.0x41197f
mov dword [esp + 0x2c], 5
call fcn.0043bc60
and eax, 0x80000003
jns 0x41167e
dec eax
or eax, 0xfffffffc
inc eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0x50], edx
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, ecx
mov dword [esp + 0x58], edx
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, ebp
mov dword [esp + 0x60], edx
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, 9
mov dword [esp + 0x68], edx
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
xor eax, eax
cmp edx, dword [esp + eax*8 + 0x50]
je 0x4116e1
inc eax
cmp eax, 5
jl 0x4116f0
mov dword [esp + 0x70], edx
call fcn.0043bc60
cdq
idiv ebp
mov esi, 1
lea edi, [esi + 4]
mov dword [esp + 0x14], edx
call fcn.0043bc60
cdq
mov ecx, edi
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
cmp dword [esp + 0x14], edi
jge 0x411731
cmp esi, 4
jne 0x411731
mov dword [esp + 0x24], edi
xor eax, eax
test esi, esi
jle 0x41174b
mov ecx, dword [esp + esi*4 + 0x14]
jmp 0x411740
cmp ecx, dword [esp + eax*4 + 0x14]
je 0x411714
inc eax
cmp eax, esi
jl 0x411740
inc esi
cmp esi, edi
jl 0x411714
jmp case.default.0x41197f
mov ebp, 5
mov dword [esp + 0x2c], ebp
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
mov esi, edx
mov edx, dword [esp + 0x28]
cmp byte [edx + 0xaf4], 0
je 0x411791
call fcn.0043bc60
mov esi, eax
and esi, 0x80000003
jns 0x41178e
dec esi
or esi, 0xfffffffc
inc esi
add esi, 9
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], esi
lea ecx, [ecx]
call fcn.0043bc60
cdq
mov ecx, 0xd
idiv ecx
cmp edx, esi
je 0x4117a0
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], edx
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
mov dword [esp + 0x14], edx
call fcn.0043bc60
mov edi, eax
and edi, 0x80000003
jns 0x4117db
dec edi
or edi, 0xfffffffc
inc edi
cmp edi, 3
jne 0x4117e4
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x28]
xor bl, bl
cmp byte [edx + 0xaf4], bl
jne 0x4117f4
mov bl, 1
mov esi, 1
lea esp, [esp]
cmp edi, 3
ja case.default.0x411809
jmp dword [edi*4 + 0x4121fc]
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
test bl, bl
je case.default.0x411809
cmp esi, 1
jle case.default.0x411809
mov edx, dword [esp + 0x28]
cmp byte [edx + 0xaf4], 0
jne case.default.0x411809
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, ebp
mov dword [esp + esi*4 + 0x14], edx
jmp case.default.0x411809
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
test bl, bl
je case.default.0x411809
cmp esi, 2
jne case.default.0x411809
mov edx, dword [esp + 0x28]
cmp byte [edx + 0xaf4], 0
jne case.default.0x411809
mov dword [esp + 0x1c], ebp
jmp case.default.0x411809
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
test bl, bl
je case.default.0x411809
cmp esi, 2
jle case.default.0x411809
mov edx, dword [esp + 0x28]
cmp byte [edx + 0xaf4], 0
jne case.default.0x411809
call fcn.0043bc60
and eax, 0x80000001
jns 0x4118c6
dec eax
or eax, 0xfffffffe
inc eax
add eax, ebp
jmp 0x4118f1
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
mov dword [esp + esi*4 + 0x14], edx
test bl, bl
je case.default.0x411809
cmp esi, 2
jg case.default.0x411809
mov edx, dword [esp + 0x28]
cmp byte [edx + 0xaf4], 0
jne case.default.0x411809
lea eax, [esi + 5]
mov dword [esp + esi*4 + 0x14], eax
xor eax, eax
test esi, esi
jle 0x41190f
mov ecx, dword [esp + esi*4 + 0x14]
nop
cmp ecx, dword [esp + eax*4 + 0x14]
je 0x411800
inc eax
cmp eax, esi
jl 0x411900
inc esi
cmp esi, ebp
jl 0x411800
jmp case.default.0x41197f
mov esi, ebp
mov dword [esp + 0x2c], 4
call fcn.0043bc60
cdq
mov ecx, 9
idiv ecx
mov eax, dword [esp + 0x16c]
cmp eax, 0xc
jne 0x411952
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
add edx, 9
jmp 0x41195f
cmp eax, 0xd
jne 0x41195f
mov edx, 0xc
lea esi, [eax - 5]
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], edx
call fcn.0043bc60
cdq
idiv esi
cmp edx, ebx
ja case.default.0x41197f
jmp dword [edx*4 + 0x41220c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ebp
jmp case.default.0x41197f
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 2
jmp case.default.0x41197f
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 2
jmp case.default.0x41197f
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
jmp case.default.0x41197f
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ebx
jmp case.default.0x41197f
call fcn.0043bc60
and eax, 0x80000001
jns 0x411a3c
dec eax
or eax, 0xfffffffe
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 5
call fcn.0043bc60
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0x20], ebx
add edx, 2
mov dword [esp + 0x1c], edx
jmp case.default.0x41197f
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 8
mov dword [esp + 0x14], edx
jmp case.default.0x41197f
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 8
mov dword [esp + 0x14], edx
jmp case.default.0x41197f
mov dword [esp + 0x2c], 5
call fcn.0043bc60
cdq
mov ecx, ebx
idiv ecx
mov edi, dword [esp + 0x16c]
mov esi, edx
inc esi
cmp edi, 0xf
jne 0x411ad6
xor esi, esi
jmp 0x411ae5
cmp edi, 0x10
je 0x411ae0
cmp edi, 0x11
jne 0x411ae5
mov esi, 8
call fcn.0043bc60
and eax, 0x80000003
jns 0x411af6
dec eax
or eax, 0xfffffffc
inc eax
mov dword [esp + 0x74], eax
cmp edi, 0x11
jne 0x411b0a
mov eax, 3
mov dword [esp + 0x74], eax
jmp 0x411b2a
cmp edi, 0x10
jne 0x411b2a
nop
call fcn.0043bc60
and eax, 0x80000003
jns 0x411b21
dec eax
or eax, 0xfffffffc
inc eax
mov dword [esp + 0x74], eax
cmp eax, 3
je 0x411b10
lea edx, [esi + 1]
mov dword [esp + 0x58], edx
lea ecx, [esi + 2]
lea edx, [esi + 3]
mov dword [esp + 0x50], esi
add esi, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], eax
cmp edi, 0xf
jne 0x411b6f
mov dword [esp + 0x70], 0xc
mov dword [esp + 0x6c], eax
call fcn.0043bc60
cdq
mov ecx, ebp
idiv ecx
cmp edx, ebp
ja case.default.0x41197f
jmp dword [edx*4 + 0x41222c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 5
jmp case.default.0x41197f
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 4
jmp case.default.0x41197f
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], ebp
jmp case.default.0x41197f
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
jmp case.default.0x41197f
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], 3
mov dword [esp + 0x18], 5
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
jmp case.default.0x41197f
mov dword [esp + 0x14], 2
mov dword [esp + 0x1c], ebp
jmp 0x411c35
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ebx
call fcn.0043bc60
cdq
mov ecx, 5
idiv ecx
mov dword [esp + 0x24], edx
xor eax, eax
push 0x34
push eax
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.0043c620
or eax, 0xffffffff
add esp, 0xc
cmp dword [esp + 0x16c], 0xe
mov dword [esp + 0x88], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
jl 0x411ce7
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0
jle 0x411dc7
lea ebp, [esp + 0x4c]
mov edi, edi
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00410300
mov esi, dword [eax]
cmp dword [esp + esi*4 + 0x78], 2
mov edi, dword [eax + 4]
jle 0x411d55
mov eax, dword [esp + 0x16c]
cmp eax, 9
je 0x411d55
cmp eax, 0xe
jge 0x411d55
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00410300
mov esi, dword [eax]
cmp dword [esp + esi*4 + 0x78], 2
mov edi, dword [eax + 4]
jg 0x411d22
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
jne 0x411d6a
mov dword [esp + 0x88], edi
jmp 0x411d72
cmp eax, edi
je 0x411d72
mov dword [esp + 0x48], edi
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + ebx*4 + 0x14]
cdq
mov ecx, 5
idiv ecx
lea ecx, [edx + eax*4]
add ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + ecx + 0x94], edi
mov dword [esp + ecx + 0x90], esi
test eax, eax
jne 0x411db5
inc dword [esp + esi*4 + 0x78]
inc dword [esp + edi*4 + 0x124]
lea esi, [esp + esi*4 + 0x78]
lea edi, [esp + edi*4 + 0x124]
inc ebx
add ebp, 8
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jl 0x411d00
xor esi, esi
mov dword [esp + 0x3c], esi
xor edx, edx
lea eax, [esi + esi*4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0xe0]
add ecx, edx
add ecx, ecx
add ecx, ecx
add ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0xe8], ecx
cmp dword [esp + ecx + 0x94], eax
je 0x411e0c
cmp dword [esp + ecx + 0x90], eax
jne 0x4121a2
mov ebp, dword [esp + 0x16c]
mov ebx, dword [esp + 0x28]
cmp ebp, 0xe
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x88]
push edx
mov byte [esp + 0x17], 1
push eax
jge 0x411e45
push 0xffffffffffffffff
lea esi, [esp + 0x164]
call fcn.00410260
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
jmp 0x411e5d
mov ecx, dword [esp + 0x7c]
push ecx
lea esi, [esp + 0x16c]
call fcn.00410260
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ebx, dword [eax]
xor esi, esi
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x30], ebx
jl 0x412126
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x94]
mov edi, edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x411e9c
cmp eax, 1
jne 0x411f24
cmp dword [esp + 0x2c], 2
jge 0x411f24
cmp ebp, 0xf
je 0x411f03
cmp ebp, 0xe
jl 0x411f24
mov eax, dword [esp + 0x34]
cmp eax, ebx
jl 0x411eba
cmp eax, edi
jle 0x41212d
cmp byte [esp + 0x13], 0
je 0x41212d
mov eax, dword [esp + 0x34]
test ebx, ebx
jle 0x411ee0
lea ecx, [ebx - 1]
cmp ecx, eax
je 0x411edb
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x411ee0
mov byte [esp + 0x13], 0
test edi, edi
jle 0x411f24
cmp edi, 0xc
je 0x411f24
lea ecx, [edi + 1]
cmp ecx, eax
je 0x41212d
lea eax, [edi + 2]
cmp eax, dword [esp + 0x34]
je 0x41212d
jmp 0x411f24
cmp byte [esp + 0x13], 0
je 0x41212d
cmp dword [esp + 0x34], 0xc
je 0x41212d
cmp dword [esp + 0x34], 5
jle 0x41212d
cmp byte [esp + 0x13], 0
je 0x41212d
mov ebp, dword [esp + 0x34]
xor eax, eax
mov ecx, edx
cmp dword [ecx], ebp
je 0x41212d
inc eax
add ecx, 8
cmp eax, 5
jl 0x411f37
cmp byte [esp + 0x13], 0
je 0x41212d
mov ebp, dword [esp + 0x16c]
inc esi
add edx, 0x28
cmp esi, dword [esp + 0x3c]
jle 0x411e80
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x30]
jne 0x412126
cmp byte [esp + 0x3b], 0
mov edi, dword [esp + 0x34]
je 0x411f90
cmp edi, dword [esp + 0x88]
jle 0x411f90
mov byte [esp + 0x13], 0
cmp dword [esp + ebx*4 + 0x78], 2
jl 0x411fa6
cmp ebp, 9
je 0x411fa6
cmp ebp, 0xe
jge 0x411fa6
mov byte [esp + 0x13], 0
cmp ebp, 6
jl 0x41202c
cmp ebp, 9
jl 0x411fb9
cmp ebp, 0xe
jl 0x41202c
cmp ebp, 8
jg 0x412015
mov edx, dword [esp + 0x70]
inc edx
cmp ebp, 7
jne 0x411fcd
mov edx, dword [esp + 0x68]
inc edx
mov ecx, dword [esp + 0x50]
lea eax, [ecx - 1]
add ecx, 0xfffffffe
test eax, eax
jge 0x411fe0
mov eax, 0xc
test ecx, ecx
jge 0x411fe9
mov ecx, 0xc
cmp edi, edx
je 0x41212d
inc edx
cmp dword [esp + 0x34], edx
je 0x41212d
cmp dword [esp + 0x34], eax
je 0x41212d
cmp dword [esp + 0x34], ecx
jne 0x412126
jmp 0x41212d
cmp ebp, 0xe
jne 0x412126
cmp edi, 0xc
jne 0x412126
jmp 0x41212d
mov esi, 1
mov edx, esi
xor eax, eax
test eax, eax
jle 0x412070
mov ecx, dword [esp + eax*4 + 0x120]
cmp ecx, esi
jl 0x412051
cmp dword [esp + eax*4 + 0x124], esi
jge 0x41206e
cmp edi, eax
je 0x41206e
cmp dword [esp + eax*4 + 0x124], esi
jl 0x412065
cmp ecx, esi
jge 0x41206e
lea ecx, [eax - 1]
cmp edi, ecx
je 0x41206e
cmp edx, 5
jge 0x412070
mov edx, esi
jmp 0x412082
add edx, esi
cmp edx, 3
jge 0x41212d
mov edi, dword [esp + 0x34]
mov esi, 1
add eax, esi
cmp eax, 0xd
jl 0x412035
cmp byte [esp + 0x13], 0
je 0x41212d
mov ebp, dword [esp + 0x34]
lea ebp, [esp + ebp*4 + 0x124]
mov ecx, 1
lea edx, [esp + 0x154]
inc dword [ebp]
mov edi, dword [ebp]
lea esi, [ecx - 2]
xor eax, eax
test esi, esi
jl 0x4120bf
cmp dword [edx - 0x34], eax
jmp 0x4120c2
cmp dword [edx], 0
jle 0x4120c9
mov eax, 1
lea esi, [ecx - 1]
test esi, esi
jl 0x4120d6
cmp dword [edx - 0x30], 0
jmp 0x4120d9
cmp dword [edx], 0
jle 0x4120dc
inc eax
test ecx, ecx
jl 0x4120e6
cmp dword [edx - 0x2c], 0
jmp 0x4120e9
cmp dword [edx], 0
jle 0x4120ec
inc eax
lea esi, [ecx + 1]
test esi, esi
jl 0x4120f9
cmp dword [edx - 0x28], 0
jmp 0x4120fc
cmp dword [edx], 0
jle 0x4120ff
inc eax
add ecx, 2
js 0x41210a
cmp dword [edx - 0x24], 0
jmp 0x41210d
cmp dword [edx], 0
jle 0x412110
inc eax
dec edi
cmp eax, 4
mov dword [ebp], edi
jge 0x41212d
mov ecx, esi
lea eax, [ecx - 2]
add edx, 4
cmp eax, 9
jl 0x4120ab
cmp byte [esp + 0x13], 0
jne 0x412164
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0xae8]
cmp eax, 0xa
jl 0x412155
mov ebp, dword [esp + 0x16c]
cmp ebp, 0xe
jl 0x411e17
cmp eax, 0xf
jg 0x411e17
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x158
ret 4
cmp dword [esp + 0x3c], 0
jne 0x412181
mov eax, dword [esp + 0x34]
inc dword [esp + eax*4 + 0x124]
inc dword [esp + ebx*4 + 0x78]
lea eax, [esp + eax*4 + 0x124]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov dword [esp + eax + 0x90], ebx
mov dword [esp + eax + 0x94], ecx
inc edx
cmp edx, 5
mov dword [esp + 0x2c], edx
jl 0x411ddd
inc esi
cmp esi, 2
mov dword [esp + 0x3c], esi
jl 0x411dcd
jmp 0x410c65