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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
or dword [ebp - 0xd4], ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [ebp - 0xd0], eax
mov eax, 0x7fff
push 3
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x90], eax
pop eax
mov dword [ebp - 0x78], eax
xor eax, eax
inc eax
mov dword [ebp - 0xf8], ecx
push 2
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x104], esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0xc8], esi
pop ecx
cmp dword [ebp + 0x28], esi
je 0x4117c0
mov eax, dword [0x49eec0]
inc eax
push eax
push ecx
mov dword [0x49eec0], eax
call fcn.0046716d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [ebp + 0x18]
push 2
pop edx
mov ebx, dword [edi + 0x8c]
cmp ebx, eax
mov dword [edi + 0x60], esi
cmovl eax, ebx
mov dword [edi + 0x64], esi
sub ebx, dword [edi + 0x90]
xor ecx, ecx
mov dword [ebp + 0x18], eax
mov eax, dword [edi + 0x34]
cmp eax, edx
mov dword [ebp - 0x38], ebx
sete cl
mov dword [ebp - 0xcc], ecx
xor ecx, ecx
cmp eax, 0x22
sete cl
mov dword [ebp - 0x6c], ecx
sub eax, esi
je 0x411845
sub eax, edx
je 0x411845
sub eax, 0x16
je 0x411837
sub eax, edx
je 0x411829
sub eax, 6
je 0x411837
sub eax, edx
je 0x411845
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], ecx
jmp 0x41184b
lea eax, [ebx + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
mov dword [edi + 0x70], esi
inc ecx
mov dword [ebp - 0xa8], ecx
jmp 0x411848
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], esi
cmp ebx, ecx
jne 0x411858
cmp dword [edi + 0x68], 0xffffffff
jne 0x411858
mov dword [edi + 0x68], esi
lea eax, [edi + 0x10]
test byte [eax], 8
je 0x41186c
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0x10c], esi
push esi
push 8
push eax
call fcn.0046bad9
mov ecx, dword [ebp + 0x18]
xor eax, eax
sub ecx, dword [ebp + 0x14]
push 3
cmp ecx, 1
mov dword [ebp - 0x60], ecx
pop edx
cmove edx, eax
mov eax, dword [edi + 0x34]
add eax, 0xfffffffd
mov dword [ebp - 0x88], edx
cmp eax, 0x1f
ja case.0x4118a5.7
movzx eax, byte [eax + 0x413a2d]
jmp dword [eax*4 + 0x413a05]
or dword [ebp - 0x78], 0xffffffff
jmp case.0x4118a5.7
xor eax, eax
inc eax
mov dword [ebp - 0x88], eax
jmp 0x4119f8
cmp dword [ebp + 0x18], ebx
push 1
pop eax
cmovl edx, eax
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x88], edx
jmp 0x4119f3
push 2
pop eax
mov dword [ebp - 0x88], eax
xor eax, eax
inc eax
jmp 0x4119f8
cmp dword [ebp + 0x18], ebx
push 2
pop eax
cmovl edx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x78], eax
jmp 0x4119f3
mov eax, dword [ebp + 0x14]
and eax, reloc.AppVIsvSubsystems32.dll_Ordinal_1
jns 0x411918
dec eax
or eax, 0xfffffffe
inc eax
push 0
pop eax
setne al
inc eax
mov dword [ebp - 0x78], eax
xor eax, eax
inc eax
jmp 0x4119a5
mov eax, dword [ebp + 0x14]
and eax, reloc.AppVIsvSubsystems32.dll_Ordinal_1
jns 0x411936
dec eax
or eax, 0xfffffffe
inc eax
je 0x411946
cmp dword [ebp + 0x18], ebx
push 1
pop eax
push 2
cmovl edx, eax
pop eax
jmp 0x411952
cmp dword [ebp + 0x18], ebx
push 2
pop eax
cmovl edx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x78], eax
xor eax, eax
inc eax
jmp 0x41199f
mov eax, dword [ebp + 0x14]
and eax, 0x80000003
jns 0x411969
dec eax
or eax, 0xfffffffc
inc eax
push 0
pop eax
setne al
inc eax
push 2
mov dword [ebp - 0x78], eax
pop eax
cmp ecx, eax
jle case.0x4118a5.7
xor eax, eax
inc eax
jmp 0x4119a9
mov eax, dword [ebp + 0x14]
and eax, 0x80000003
jns 0x41198e
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4119b1
cmp dword [ebp + 0x18], ebx
push 2
pop eax
cmovl edx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x88], edx
cmp ecx, eax
jle 0x4119f3
mov dword [ebp - 0xd8], eax
jmp 0x4119f3
mov eax, dword [ebp + 0x14]
inc eax
and eax, 0x80000003
jns 0x4119c1
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4119da
cmp dword [ebp + 0x18], ebx
push 1
pop eax
cmovl edx, eax
push 2
pop eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x78], eax
jmp case.0x4118a5.7
xor ebx, ebx
push 2
pop eax
inc ebx
mov dword [ebp - 0x78], eax
cmp ecx, ebx
mov eax, esi
cmovg eax, ebx
mov dword [ebp - 0xd8], eax
xor eax, eax
inc eax
cmp edx, 3
je 0x4119fe
mov dword [ebp - 0x10c], esi
mov edx, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x48], eax
inc ecx
xor eax, eax
mov dword [ebp - 0xb4], esi
cmp edx, ecx
mov dword [ebp - 0xe4], esi
mov ebx, esi
mov dword [ebp - 0x54], esi
setg al
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0x70], ebx
jne 0x411a46
cmp dword [ebp - 0xa8], ebx
jne 0x411a46
mov eax, dword [edi + 0x84]
add eax, dword [edi + 0x78]
add eax, dword [edi + 0x70]
mov dword [ebp - 0xf4], eax
jmp 0x411a4c
mov dword [ebp - 0xf4], esi
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp ecx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
jge 0x411d60
push eax
push edi
call fcn.0041e296
mov ecx, eax
mov dword [ebp - 0x28], ecx
lea edx, [ecx + 0x30]
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x58], eax
cmp dword [ecx + 0x90], esi
je 0x411ae5
cmp dword [ecx + 0x10], esi
jl 0x411ae5
lea eax, [ebp - 0x100]
push eax
push dword [ecx + 0x10]
push 0x66
push dword [ebp + 0xc]
call fcn.0043c164
test eax, eax
jne 0x411adf
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
movsx eax, word [edi]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], esi
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x100]
call fcn.0043d6c9
push dword [ebp - 0x100]
call fcn.0043d8ec
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
push 4
lea eax, [ecx + 0xd4]
pop ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax - 0x10]
cmp ecx, 0xffffffff
je 0x411b9e
lea eax, [ebp - 0x94]
push eax
push ecx
push 0x6b
push dword [ebp + 0xc]
call fcn.0043c164
test eax, eax
je 0x411b32
push dword [ebp - 0xec]
call fcn.0043b553
mov eax, dword [ebp - 0x8c]
or dword [eax - 0x10], 0xffffffff
mov dword [eax], esi
jmp 0x411b9e
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
call fcn.0043d6c9
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x8c]
inc dword [eax + 0x10]
mov eax, dword [edx]
test eax, eax
js 0x411b81
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x411b81
mov ebx, dword [ebp - 0x74]
movsx ecx, word [edi]
imul eax, eax, 0x50
mov dword [eax + ebx + 0x48], ecx
mov ecx, ebx
imul eax, dword [edx], 0x50
mov edx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x4c]
mov dword [eax + ecx + 0x4c], edx
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x94]
call fcn.0043d8ec
mov eax, dword [ebp - 0x8c]
add eax, 4
sub ebx, 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x4c], ebx
jne 0x411af7
mov ecx, dword [ebp - 0x28]
mov ebx, esi
test dword [ecx + 0xf4], 0x100
je 0x411cff
push ecx
push edi
call fcn.0041e380
cmp eax, 0xffffffff
je 0x411ce5
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0x65
push dword [ebp + 0xc]
call fcn.0043c164
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x411d83
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ecx + 0x34]
sub eax, 0x18
je 0x411c2d
push 2
pop edx
sub eax, edx
je 0x411c2d
sub eax, 6
je 0x411c2d
mov eax, dword [ebp - 0x28]
push esi
push 0x100
add eax, 0xf4
push eax
call fcn.0046bad9
jmp 0x411cd2
mov eax, dword [ecx + 0x8c]
dec eax
push eax
push ecx
call fcn.0041e296
mov edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x74], edx
mov ecx, dword [edx + 0x38]
sub ecx, dword [edx + 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x38]
sub eax, dword [edx]
mov edx, dword [ebp - 0x74]
cmp ecx, eax
je 0x411c6f
xor eax, eax
inc eax
push eax
push 2
pop eax
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0x10
push eax
call fcn.0046bad9
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x34]
mov eax, dword [edx + 0x3c]
sub eax, dword [edx + 0x34]
cmp eax, ecx
je 0x411ca8
xor eax, eax
inc eax
push eax
push 2
pop eax
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0x10
push eax
call fcn.0046bad9
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x74]
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x4c]
test byte [eax + 0x10], 2
je 0x411cbc
xor eax, eax
inc eax
mov dword [ebp - 0xc0], eax
jmp 0x411cca
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0xc0], ebx
je 0x411cd2
push dword [ebp - 0x50]
call fcn.0043d6c9
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x50]
call fcn.0043d8ec
jmp 0x411cff
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 0xffffffff
jne 0x411cff
push esi
push 0x100
lea eax, [ecx + 0xf4]
push eax
call fcn.0046bad9
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0xa8], ebx
je 0x411d1b
mov ecx, dword [ebp - 0x90]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x48], ebx
je 0x411d33
mov dword [ebp - 0x48], esi
cmp eax, dword [ebp - 0xb4]
jle 0x411d4a
mov dword [ebp - 0xb4], eax
jmp 0x411d4a
mov ecx, dword [ebp - 0xe4]
cmp eax, ecx
cmovg ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp + 0x18]
jl 0x411a60
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0xcc], esi
je 0x411d9f
xor eax, eax
inc eax
cmp ecx, eax
jle 0x411d97
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0xb4]
jmp 0x411db4
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x44]
jmp 0x41380d
mov eax, dword [ebp - 0xb4]
jmp 0x411db4
mov ecx, dword [ebp - 0xb4]
mov eax, ecx
cmp dword [ebp - 0xe4], ecx
cmovg eax, dword [ebp - 0xe4]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x6c], esi
je 0x411dcc
xor ecx, ecx
inc ecx
cmp edx, ecx
jle 0x411dcc
add eax, dword [edi + 0x84]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp + 0x14]
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
mov dword [ebp - 0x9c], eax
xor eax, eax
inc eax
mov dword [ebp - 0x98], eax
jmp 0x41337a
cmp dword [edi + 0x34], 0x1a
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x40], esi
je 0x411e3f
cmp dword [edi + 0x34], 0x20
je 0x411e19
xor eax, eax
cmp ecx, dword [ebp + 0x14]
jmp 0x411e6e
test ecx, ecx
jne 0x411e3a
cmp dword [ebp - 0x104], ecx
jne 0x411e3a
or dword [ebp - 0x74], 0xffffffff
lea ecx, [edx - 1]
xor eax, eax
mov dword [ebp - 0x3c], ecx
inc eax
mov dword [ebp - 0x104], eax
jmp 0x411e71
mov dword [ebp - 0x60], esi
jmp 0x411e74
cmp ecx, dword [ebp - 0x108]
jne 0x411e6a
cmp dword [ebp - 0x104], 0
jne 0x411e6a
lea eax, [ecx - 1]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x74], eax
lea ecx, [edx - 1]
xor eax, eax
mov dword [ebp - 0x3c], ecx
inc eax
mov dword [ebp - 0x104], eax
jmp 0x411e74
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0x60], eax
push ecx
push edi
call fcn.0041e296
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x28], ebx
call fcn.0041167d
mov eax, dword [ebx + 0xf4]
mov ecx, eax
and ecx, 4
mov dword [ebx + 0x14], esi
mov dword [ebp - 0x90], ecx
and eax, 0x80
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x60], 0
mov dword [ebp - 0x8c], eax
mov dword [ebx + 0x18], esi
mov dword [ebp - 0x30], ecx
jne 0x411ec1
add ecx, dword [ebx + 0x58]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0xa8], 0
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x2c], ecx
je 0x411f7c
test eax, eax
je 0x411f7c
cmp dword [edi + 0x2c], 0xffffffff
je 0x411f6e
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x2c]
push 0x65
push dword [ebp + 0xc]
call fcn.0043c164
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x4137ff
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi + 0x30]
push eax
call fcn.0041e296
mov esi, eax
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_SetRect]
push dword [esi + 0xf0]
lea eax, [ebx + 0xe4]
push dword [esi + 0xec]
push dword [esi + 0xe8]
push dword [esi + 0xe4]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
jmp 0x411f79
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov dword [ebp - 0xa4], eax
lea eax, [ebx + 0x2c]
test dword [eax], 0x800
mov dword [ebp - 0x48], eax
je 0x411f9d
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 4]
jmp 0x411fd3
cmp dword [ebp - 0x6c], 0
je 0x411fcd
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jne 0x411fcd
mov eax, dword [ebp - 0x7c]
push esi
push esi
push esi
push esi
push ecx
mov dword [ebp - 0x80], eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x30]
sub eax, dword [edi + 0x7c]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x64], eax
jmp 0x411fd6
mov edx, dword [ebx + 0xf0]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x98], 0
jne 0x411ff0
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xb4]
add edx, eax
mov dword [ebp - 0x80], edx
push ebx
push edi
call fcn.0041e380
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x412e51
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x4c]
push 0x65
push dword [ebp + 0xc]
call fcn.0043c164
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x41380d
inc eax
push eax
push dword [ebp - 0x50]
call fcn.0043d8ef
push dword [ebp - 0x50]
call fcn.0043d6c9
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov dword [ebp - 0xbc], ebx
cmp dword [ebx + 0x34], 0x13
je 0x412081
cmp dword [ebx + 0x34], 0x1c
jne 0x4120a9
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0041e296
cmp dword [ebp - 0x8c], 0
mov ecx, eax
jne 0x4120a9
mov eax, dword [ecx + 0xec]
sub eax, dword [ecx + 0xe4]
jmp 0x412090
cmp dword [ebp - 0x8c], 0
jne 0x4120a9
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0xa4]
je 0x4120a9
xor eax, eax
inc eax
push eax
push 2
pop eax
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0046bad9
mov eax, dword [ebx + 0x34]
push 0x18
pop ecx
push 2
sub eax, ecx
pop ecx
je 0x4120c3
sub eax, ecx
je 0x4120c3
sub eax, 6
jne 0x4121ad
mov eax, dword [ebp - 0x78]
cmp eax, 0xffffffff
je 0x412198
xor edx, edx
inc edx
cmp eax, edx
je 0x412112
cmp eax, ecx
jne 0x4121ad
cmp dword [ebp - 0xd8], 0
push 0x20
pop edi
je 0x4120f6
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x3c], eax
push 0x18
pop eax
cmovg edi, eax
cmp dword [ebx + 0x34], edi
je 0x4121ad
push edx
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.0046bad9
mov dword [ebx + 0x34], edi
jmp 0x4121ad
cmp dword [ebp - 0xd8], 0
push 0x18
pop eax
mov ecx, eax
mov dword [ebp - 0x48], ecx
je 0x41217d
mov eax, dword [edi + 0x34]
sub eax, 3
je 0x412160
push 2
pop edi
sub eax, edi
je 0x41213c
sub eax, 3
je 0x41214c
sub eax, 7
jne 0x412180
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x3c], eax
jle 0x412180
push 0x20
pop ecx
mov dword [ebp - 0x48], ecx
jmp 0x412180
mov eax, dword [ebp + 0x14]
xor edx, edx
inc eax
inc edx
cmp dword [ebp - 0x3c], eax
jle 0x41217d
push 0x20
pop ecx
mov dword [ebp - 0x48], ecx
jmp 0x41217d
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x3c]
lea eax, [edi + 1]
cmp edx, eax
je 0x412174
lea eax, [edi + 3]
cmp edx, eax
jne 0x41217a
push 0x20
pop ecx
mov dword [ebp - 0x48], ecx
xor edx, edx
inc edx
push 2
pop edi
cmp dword [ebx + 0x34], ecx
je 0x4121ad
push edx
push edi
lea eax, [ebx + 0x10]
push eax
call fcn.0046bad9
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x34], eax
jmp 0x4121ad
xor eax, eax
inc eax
push eax
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.0046bad9
mov dword [ebx + 0x34], 0x19
movzx edi, byte [ebx + 0x10]
xor eax, eax
push dword [ebp - 0x50]
mov ebx, dword [ebx + 0x34]
inc eax
shr edi, 1
xor ecx, ecx
and edi, eax
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x68], 3
sete cl
mov dword [ebp - 0xb8], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp + 0x20], 0
push 1
pop eax
cmovne edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x412216
push dword [ebp + 0x28]
push dword [ebp + 0x20]
push dword [ebp - 0xd0]
push dword [ebp - 0x50]
push dword [ebp + 0xc]
push dword [ebp - 0xfc]
call dword [ebx*4 + 0x49eee0]
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x413399
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x3c]
mov edi, eax
push edi
mov dword [ebp - 0xbc], edi
call fcn.0041e296
push dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp - 0xb8], 0
mov edx, eax
mov dword [ebp - 0x34], edx
je 0x41228a
cmp dword [ebp - 0xf0], 0
jne 0x41228a
cmp dword [ebp - 0x54], 0
jne 0x41228a
mov eax, dword [edx + 0xa4]
mov ecx, dword [eax + edx + 0xc]
mov eax, dword [edx + 0x50]
add eax, ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
sub edx, ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xa0]
mov dword [ecx + 0x14], edx
mov dword [eax + ecx + 4], edx
mov dword [eax + ecx + 0xc], edx
mov edx, ecx
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0xa0]
add ecx, edi
mov dword [ebp - 0x48], ecx
cmp ebx, 0x10
jg 0x412436
je 0x41265b
sub ebx, 4
je 0x4122d4
push 2
pop edx
sub ebx, edx
je 0x4122d4
sub ebx, 3
je 0x41265b
sub ebx, 3
je 0x412350
sub ebx, 1
jne 0x412460
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xc8], ebx
jne 0x4123ea
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push edi
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
call fcn.00417991
test eax, eax
je 0x412330
mov eax, dword [ebp - 0x28]
push ecx
push ecx
movsd xmm0, qword [eax + 0x124]
movsd qword [esp], xmm0
push dword [ebp - 0x2c]
call fcn.0041b0f1
cmp eax, ebx
jle 0x412330
lea ebx, [eax + 3]
mov ecx, dword [ebp - 0x28]
test dword [ecx + 0x2c], 0x2800
jne 0x4123df
mov eax, dword [ecx + 0x80]
add eax, ebx
mov dword [ecx + 0x60], eax
jmp 0x4123e2
cmp dword [ebp - 0x6c], 0
je 0x412365
mov eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x64], eax
mov ecx, eax
jmp 0x4123a6
test dword [eax + 0x2c], 0x2800
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
jne 0x412387
mov eax, dword [eax + 0x80]
sub eax, dword [ecx + 0x88]
sub eax, dword [ebx]
add eax, dword [ebx + 8]
jmp 0x41238c
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x60], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
jne 0x4123a3
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x14]
jmp 0x4123a9
mov ecx, dword [ecx + 0x60]
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebx + 0xa0]
add edx, ebx
mov dword [ebx + 0x14], ecx
mov dword [edx + 4], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebx + 0x98]
test eax, eax
jle 0x4123cb
imul eax, eax, 0x14
mov dword [eax + edx - 8], ecx
mov edx, dword [ebp - 0x28]
cmp ecx, dword [ebx + 0x24]
jle 0x412739
mov dword [ebx + 0x24], ecx
jmp 0x412739
mov dword [ecx + 0x60], ebx
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
inc ebx
jmp 0x4123f3
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x60], eax
cmp dword [ebp - 0x6c], 0
je 0x412717
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov ebx, dword [ebp - 0x34]
jle 0x412428
imul eax, eax, 0x14
mov eax, dword [eax + ecx + 4]
sub eax, dword [ecx + 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ecx + 0x18]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x28]
jmp 0x412739
mov eax, dword [ebp - 0x64]
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x41241d
sub ebx, 0x12
je 0x41265b
sub ebx, 4
je 0x4125b9
push 2
pop ecx
sub ebx, ecx
je 0x41256c
sub ebx, ecx
je 0x4124f3
sub ebx, 6
je 0x4124b9
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cdq
sub eax, edx
sar eax, 1
test dword [ecx + 0x2c], 0x2800
mov dword [ecx + 0x60], eax
jne 0x41249a
cmp dword [ecx + 0x10], esi
jl 0x41249a
mov eax, dword [ecx + 0x80]
sub eax, dword [ecx + 0x88]
sub eax, dword [ebx]
add eax, dword [ebx + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x60], eax
cmp dword [ebp - 0x6c], 0
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
je 0x4124b1
mov eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x28]
jmp 0x41273c
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x8c]
sub eax, ecx
push eax
push ebx
call fcn.0041e296
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0041e296
mov ecx, dword [ebp - 0x68]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x68], ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x40], ecx
jmp 0x41259e
mov ebx, dword [edx + 0x8c]
mov eax, ebx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
test edx, edx
jle 0x41251e
mov eax, dword [ebp - 0x34]
imul ecx, edx, 0x14
add ecx, dword [eax + 0xa0]
mov eax, dword [ecx + eax - 8]
mov dword [ebp - 0xb0], eax
jmp 0x412524
mov eax, dword [ebp - 0xb0]
add dword [ebp - 0x30], eax
lea eax, [ebx - 1]
cmp edx, eax
jge 0x41255a
lea eax, [ebx - 2]
mov ebx, dword [ebp - 0x34]
push eax
push ebx
call fcn.0041e296
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0041e296
mov ecx, dword [ebp - 0x68]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x68], ecx
jmp 0x41255d
mov ebx, dword [ebp - 0x34]
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x8c]
dec eax
jmp 0x412594
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x8c]
imul eax, ecx, 0x14
add eax, dword [ebx + 0xa0]
mov eax, dword [eax + ebx - 0x1c]
add dword [ebp - 0x30], eax
mov dword [ebp - 0xb0], eax
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ecx - 1]
push eax
push ebx
call fcn.0041e296
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0x28]
jne 0x41273c
mov eax, dword [eax + 0x60]
mov dword [edx + 0x60], eax
jmp 0x41273c
cmp dword [ebp - 0x6c], 0
je 0x4125d4
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x64], eax
sub ecx, eax
jmp 0x412625
test dword [eax + 0x2c], 0x2800
mov ebx, dword [ebp - 0x2c]
jne 0x412600
mov eax, dword [eax + 0x80]
mov ecx, dword [ebp - 0x28]
sub eax, dword [ecx + 0x88]
sub eax, dword [ebx]
add eax, dword [ebx + 8]
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
mov dword [ecx + 0x60], eax
jmp 0x412610
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cdq
sub eax, edx
mov edx, dword [ebp - 0x28]
sar eax, 1
mov dword [edx + 0x60], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov ebx, dword [ebp - 0x34]
jne 0x41261f
mov ecx, dword [ebx + 0x14]
jmp 0x412625
mov ecx, dword [ebx + 0x58]
sub ecx, dword [edx + 0x60]
mov edx, dword [ebx + 0xa0]
add edx, ebx
mov dword [ebx + 0x14], ecx
mov dword [edx + 4], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebx + 0x98]
test eax, eax
jle 0x412647
imul eax, eax, 0x14
mov dword [eax + edx - 0x10], ecx
mov edx, dword [ebp - 0x28]
cmp ecx, dword [ebx + 0x1c]
jge 0x412739
mov dword [ebx + 0x1c], ecx
jmp 0x412739
xor ebx, ebx
mov dword [ebp - 0xc8], esi
inc ebx
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x110], ebx
jne 0x4126e7
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push edi
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
call fcn.00417991
test eax, eax
je 0x4126b3
mov eax, dword [ebp - 0x28]
push ecx
push ecx
movsd xmm0, qword [eax + 0x124]
movsd qword [esp], xmm0
push dword [ebp - 0x2c]
call fcn.0041b0f1
cmp eax, ebx
jge 0x4126b3
lea ebx, [eax + 3]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test dword [edx + 0x2c], 0x2800
mov eax, dword [ecx + 8]
jne 0x4126d7
sub eax, dword [edx + 0x88]
sub eax, ebx
sub eax, dword [ecx]
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
inc ebx
jmp 0x4126ed
sub eax, dword [ecx]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp - 0x28]
sar eax, 3
jmp 0x4126cf
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x64]
cmp dword [ebp - 0x6c], 0
mov dword [edx + 0x60], eax
je 0x412736
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jle 0x41271f
imul eax, eax, 0x14
mov ebx, dword [eax + ecx + 4]
mov eax, ebx
sub eax, dword [ecx + 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
sub ebx, eax
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x34]
jmp 0x412420
mov ecx, dword [ebp - 0x64]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
neg eax
add ecx, eax
mov dword [ebp - 0x64], ecx
jmp 0x412717
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0xb8], 0
je 0x412766
cmp dword [ebp - 0xf0], 0
jne 0x412769
mov eax, dword [ebx + 0x58]
sub eax, dword [ebx + 0x14]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x5c]
sub eax, dword [ebx + 0x14]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], esi
cmp dword [ebp - 0x98], 0
jne 0x4127ac
mov eax, dword [edx + 0x64]
add eax, dword [ebp - 0xb0]
sub dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
inc eax
cmp dword [ebp - 0x3c], eax
jg 0x412790
cmp dword [ebp - 0x5c], 0
je 0x4127ac
mov eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x30]
cmp ebx, eax
cmovl ebx, eax
mov eax, ebx
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
lea eax, [edx + 0x2c]
test dword [eax], 0x1000
mov dword [ebp - 0x48], eax
je 0x4128a1
cmp dword [ebp - 0x54], 0
je 0x412884
cmp dword [ebp - 0x8c], 0
jne 0x412884
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebx + 0x24]
sub ebx, dword [ecx + 0x1c]
cmp dword [ecx + 0x34], 0x1c
jne 0x412815
mov eax, dword [ecx + 0x8c]
dec eax
push eax
push ecx
call fcn.0041e296
mov ebx, dword [eax + 0xec]
sub ebx, dword [eax + 0xe4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call fcn.0041e2e6
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add ebx, eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x38]
sub eax, dword [ecx]
cmp ebx, eax
je 0x41284b
cmp dword [0x47cb78], 0
jne 0x41284b
xor eax, eax
inc eax
push eax
push 2
mov dword [ebp - 0x114], eax
pop eax
push eax
push dword [ebp - 0x48]
call fcn.0046bad9
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xfc], ebx
jmp 0x412851
mov dword [edx + 0xfc], esi
mov ebx, dword [ebp - 0x34]
mov eax, esi
cmp dword [ebx + 0x34], 0x13
jne 0x412861
mov eax, dword [ebx + 0x28]
jmp 0x41287b
cmp dword [ebx + 0x34], 0x1c
jne 0x41287e
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0041e296
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 0x3c]
sub eax, dword [ebx + 0x20]
mov dword [edx + 0xf8], eax
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x7c]
mov dword [ebx + 0x54], eax
mov eax, dword [edx + 0xf8]
add eax, dword [ebp - 0x7c]
mov dword [edx + 0x100], eax
jmp 0x412b0b
mov dword [edx + 0x100], esi
mov dword [edx + 0xf8], esi
mov dword [edx + 0xfc], esi
cmp dword [ebx + 0x98], esi
je 0x4129c7
test ecx, ecx
jne 0x4129cf
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebx + 0xa0]
add ebx, ecx
sub eax, dword [ecx + 0x84]
sub eax, dword [ecx + 0x78]
sub eax, dword [ecx + 0x70]
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x7c]
mov dword [ebx], eax
test byte [edi + 0x10], 0x20
jne 0x412900
xor eax, eax
inc eax
push eax
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0046bad9
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x110], 0
je 0x412935
cmp dword [edx + 0xf0], 0
je 0x412935
push dword [ebp - 0xc8]
push edx
call fcn.004115e6
mov ecx, dword [ebp - 0x28]
test eax, eax
jne 0x412938
mov eax, dword [ecx + 0x3c]
sub eax, dword [ecx + 0x34]
sub eax, dword [ecx + 0xf0]
add dword [ebx], eax
jmp 0x412938
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x90], 0
je case.0x412953.4
mov eax, dword [edi + 0x34]
add eax, 0xfffffffd
cmp eax, 0x1d
ja case.0x412953.4
movzx eax, byte [eax + 0x413a59]
jmp dword [eax*4 + 0x413a4d]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
neg eax
jmp 0x412978
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
sub eax, dword [edx + 0xc]
add eax, dword [ecx + 0x68]
add dword [ebx], eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp + 0x1c]
cmp dword [ebp - 0xb8], 0
mov dword [ecx + 0x54], eax
je 0x412b0b
cmp dword [ebp - 0xf0], 0
je 0x412b24
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x412b0b
add dword [ecx + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0xc], eax
mov ebx, ecx
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x412b0b
cmp dword [ebp - 0x98], 0
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x54], ecx
jne 0x4129ef
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xb4]
add eax, ecx
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebx + 0x54]
add eax, ecx
cmp dword [ebp - 0xc0], 0
mov dword [ebp - 0x54], eax
jne 0x412b0b
mov dword [ebx + 0x28], eax
mov eax, esi
mov dword [ebp - 0x118], esi
cmp dword [ebx + 0x8c], esi
jle 0x412b0b
mov edi, dword [ebp - 0x54]
push eax
push ebx
call fcn.0041e296
push eax
push ebx
mov dword [ebp - 0x54], eax
call fcn.0041e380
cmp eax, 0xffffffff
je 0x412af2
lea ecx, [ebp - 0x94]
push ecx
push eax
push 0x65
push dword [ebp + 0xc]
call fcn.0043c164
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x412af2
push dword [ebp - 0x94]
call fcn.0043d6c9
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov eax, dword [ebp - 0x54]
mov edx, dword [ebx + 0x84]
add edx, dword [ebx + 0x78]
add edx, dword [ebx + 0x70]
mov dword [ebx + 0x54], edi
mov ecx, dword [eax + 0xf0]
add ecx, dword [eax + 0x34]
mov eax, dword [ebx + 0x28]
sub ecx, edi
add eax, edi
sub ecx, edx
add edx, eax
mov dword [ebx + 0x20], ecx
mov eax, dword [ebp - 0x34]
cmp edx, dword [eax + 0x28]
jle 0x412ab4
mov dword [eax + 0x28], edx
cmp dword [ebx + 0x34], 0x13
je 0x412ad8
cmp dword [ebx + 0x34], 0x1c
je 0x412ad8
mov eax, dword [ebp - 0x54]
test byte [eax + 0xf4], 4
jne 0x412ad8
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0x20]
mov dword [ebx + ecx], eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x94]
call fcn.0043d8ec
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
cmp eax, dword [ebx + 0x8c]
jl 0x412a30
mov ecx, dword [ebp - 0xb8]
xor eax, eax
cmp dword [ebp - 0xf0], eax
cmovne ecx, eax
mov dword [ebp - 0xb8], ecx
jmp 0x412b2a
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x412b5e
mov eax, dword [ebp - 0x88]
xor ecx, ecx
mov ebx, dword [ebp - 0x28]
inc ecx
cmp eax, ecx
je 0x412b4a
add eax, 0xfffffffe
cmp eax, ecx
ja 0x412b50
mov eax, dword [ebx + 0x20]
jmp 0x412b4d
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x28], eax
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x60]
add ecx, dword [ebx + 0x24]
mov ebx, dword [ebp - 0x34]
jmp 0x412b6a
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x34]
mov edx, dword [eax + 0x60]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebp - 0x28]
sub ecx, edx
mov eax, dword [ebx + 0x24]
sub eax, ecx
mov dword [ebp - 0x54], ecx
mov dword [edi + 0x14], eax
mov eax, ecx
sub eax, dword [ebx + 0x1c]
cmp dword [ebp - 0x40], 0
mov dword [edi + 0x18], eax
mov edi, dword [ebp - 0xbc]
je 0x412b9d
mov ebx, dword [ebp - 0x28]
sub eax, dword [ebp - 0xb0]
mov dword [ebx + 0x18], eax
mov ebx, dword [ebp - 0x34]
cmp dword [ebp - 0xe8], 0
jle 0x412d5e
mov eax, dword [ebx + 0xa4]
push ecx
push dword [ebx + 0x94]
add eax, ebx
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.0041ca7c
mov ebx, eax
mov eax, dword [ebp - 0x28]
add ebx, dword [0x47cbbc]
cmp dword [ebp - 0x60], 0
jne 0x412be2
add ebx, dword [eax + 0x58]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x60], esi
cmp edx, ebx
jge 0x412c67
cmp dword [ebp - 0xb8], 0
je 0x412c25
mov ecx, ebx
sub ecx, edx
mov edx, dword [eax + 0x28]
mov eax, edx
mov dword [ebp - 0x60], ecx
sub eax, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x28], eax
mov ecx, dword [ecx + 0x1c]
cmp eax, ecx
jge 0x412c1d
mov eax, dword [ebp - 0x28]
sub edx, ecx
mov dword [ebp - 0x60], edx
mov dword [eax + 0x28], ecx
jmp 0x412c20
mov edx, dword [ebp - 0x60]
sub ebx, edx
mov edx, dword [ebp - 0x30]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0xbc], eax
test eax, eax
jle 0x412c5b
mov eax, dword [ebp - 0xf8]
test eax, eax
js 0x412c5b
push eax
push edi
call fcn.0041e296
mov ecx, dword [eax + 0x28]
test ecx, ecx
jns 0x412c5b
add ecx, dword [ebp - 0xbc]
xor edx, edx
test ecx, ecx
cmovg ecx, edx
mov dword [eax + 0x28], ecx
mov edx, ebx
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x30], edx
neg ebx
jmp 0x412cda
jle 0x412cd0
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0xd4]
jne 0x412cd5
push eax
push edi
call fcn.0041e296
mov edx, dword [ebp - 0x30]
mov ecx, eax
xor eax, eax
sub edx, ebx
inc eax
mov dword [ebp - 0xbc], edx
mov ebx, dword [ecx + 0x28]
cmp dword [ebp - 0xe8], eax
jne 0x412cb4
mov edx, dword [ecx + 0x1c]
cmp ebx, edx
jle 0x412cc5
mov eax, ebx
sub eax, dword [ebp - 0xbc]
mov dword [ecx + 0x28], eax
cmp eax, edx
jge 0x412cc5
mov dword [ecx + 0x28], edx
jmp 0x412cc5
test ebx, ebx
jle 0x412cc5
mov eax, ebx
sub eax, edx
push 0
pop edx
cmovs eax, edx
mov dword [ecx + 0x28], eax
sub ebx, dword [ecx + 0x28]
add dword [ecx + 0x14], ebx
sub dword [ecx + 0x18], ebx
jmp 0x412cd7
mov ebx, dword [ebp - 0x60]
jmp 0x412cda
mov ebx, esi
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x98], 0
je 0x412d2a
cmp dword [ebp - 0x40], 0
je 0x412d05
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
test edx, edx
je 0x412d2d
mov ecx, dword [ebp - 0x5c]
add eax, edx
sub ecx, dword [edi + 0x7c]
cmp eax, ecx
jge 0x412d2a
mov eax, ecx
sub eax, edx
jmp 0x412d1a
mov eax, dword [ebp - 0x48]
test dword [eax], 0x1000
je 0x412d1f
mov eax, dword [ebp - 0x5c]
sub eax, dword [edi + 0x7c]
cmp edx, eax
jge 0x412d2a
mov dword [ebp - 0x30], eax
jmp 0x412d2d
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x30]
jmp 0x412cf3
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
sub eax, ebx
push eax
push dword [ecx + 0x94]
mov eax, dword [ecx + 0xa4]
add eax, ecx
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.0041d2d5
jmp 0x412de5
cmp dword [ebp - 0x98], 0
je 0x412db2
cmp dword [ebp - 0x40], 0
je 0x412d8f
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
test edx, edx
je 0x412db5
mov ecx, dword [ebp - 0x5c]
add eax, edx
sub ecx, dword [edi + 0x7c]
cmp eax, ecx
jge 0x412daf
mov eax, ecx
mov ecx, dword [ebp - 0x54]
sub eax, edx
mov dword [ebp - 0x30], eax
jmp 0x412db5
mov eax, dword [ebp - 0x48]
test dword [eax], 0x1000
je 0x412daa
mov eax, dword [ebp - 0x5c]
sub eax, dword [edi + 0x7c]
cmp dword [ebp - 0x30], eax
jge 0x412db2
mov dword [ebp - 0x30], eax
jmp 0x412db5
mov eax, dword [ebp - 0x30]
jmp 0x412d77
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x6c], 0
je 0x412dbe
mov eax, dword [ebp - 0x64]
sub eax, ecx
push eax
mov eax, dword [ebx + 0xa4]
push ebx
push dword [ebx + 0x94]
add eax, ebx
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.0041c9be
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [ebp - 0x50]
call fcn.0043d8ef
push dword [ebp - 0x50]
call fcn.0043d8ec
cmp dword [ebp - 0x40], 0
je 0x412e0f
cmp dword [ebp - 0x58], 0
je 0x412e95
inc dword [ebp - 0xe8]
cmp dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xd4], eax
je 0x412e40
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x28], esi
je 0x412e95
xor eax, eax
inc eax
mov dword [ebp - 0xdc], eax
jmp 0x412e95
or ecx, 0xffffffff
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xf8], ecx
jmp 0x412e98
cmp dword [ebp - 0x98], 0
jne 0x412e7b
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebx + 0x64]
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x5c]
jg 0x412e73
test eax, eax
je 0x412e7b
cmp ecx, eax
cmovl ecx, eax
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x60], 0
je 0x412e95
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.0041d5da
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x30]
mov ebx, edx
je 0x412f5e
cmp dword [ebp - 0x6c], 0
je 0x412ec0
cmp eax, dword [ebp - 0x38]
jne 0x412ec0
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
push dword [ebp - 0x2c]
jmp 0x412ecf
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 4]
neg eax
push eax
mov eax, edx
sub eax, dword [ecx]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x7c]
mov edx, dword [ecx + 8]
sub edx, dword [ecx]
add edx, eax
add edx, dword [ebp - 0x68]
cmp dword [ebp - 0xcc], 0
mov dword [ebp - 0x54], edx
je 0x412fd8
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x98], esi
je 0x412f21
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x412fd8
sub eax, dword [ebp - 0xb0]
add eax, dword [ecx]
add eax, edx
mov dword [ebp - 0x5c], eax
jmp 0x412fd8
cmp dword [ebp - 0x4c], 0xffffffff
je 0x412fd8
mov ecx, dword [ebp - 0x48]
test dword [ecx], 0x1000
mov ecx, dword [ebp - 0x28]
je 0x412f46
mov edx, dword [ecx + 0x38]
add edx, eax
mov dword [ebp - 0x5c], edx
jmp 0x412fdb
mov edx, dword [ecx + 0x60]
add edx, eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
add eax, dword [edx]
mov dword [ebp - 0x5c], eax
jmp 0x412fde
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x80]
sub eax, dword [ecx + 4]
add eax, dword [ebp - 0xb4]
sub edx, dword [ecx]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edi + 0x7c]
mov edx, dword [ecx + 0x64]
mov ecx, dword [ecx + 0x38]
add edx, eax
mov dword [ebp - 0x54], edx
xor edx, edx
inc edx
mov dword [ebp - 0x98], edx
mov edx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx]
sub eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xa0]
cmp eax, edx
cmovl edx, eax
mov eax, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x68]
add eax, ecx
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
test dword [ecx + 0x2c], 0x1000
je 0x412ff6
mov eax, dword [ecx + 0xf0]
add eax, dword [ecx + 0x34]
sub dword [ecx + 0x100], eax
cmp dword [ebp - 0xa8], 0
je 0x413262
cmp dword [ebp - 0x4c], 0xffffffff
je 0x413024
mov eax, dword [ecx + 0x60]
add eax, dword [edx]
cmp dword [edi + 0x60], 0
je 0x413019
cmp eax, dword [edi + 0x60]
jge 0x41301c
mov dword [edi + 0x60], eax
cmp dword [edi + 0x64], eax
jge 0x413024
mov dword [edi + 0x64], eax
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0xac], eax
cmp ecx, 0x1a
jne 0x4130be
cmp dword [ebp - 0x8c], 0
je 0x4130b1
lea eax, [edx + 1]
mov dword [ebp - 0xac], eax
test eax, eax
jle 0x41335f
dec eax
push eax
push edi
mov dword [ebp - 0x58], eax
call fcn.0041e296
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x4c], eax
push ecx
push eax
call fcn.0041167d
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0xf4]
and eax, 4
je 0x413219
xor edx, edx
inc edx
cmp dword [ebp - 0xac], edx
jle 0x413219
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ecx + 0x30]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [ebp - 0x58]
jmp 0x413359
mov edx, dword [ebp - 0x108]
cmp dword [ebp - 0x3c], edx
jl 0x41304d
jmp 0x4130e1
push 0x18
pop edx
cmp ecx, edx
je 0x41304d
cmp ecx, 0x20
jne 0x41335f
cmp dword [ebp - 0x8c], 0
jne 0x41335f
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x41316f
mov eax, dword [edi + 0x8c]
dec eax
push eax
push edi
call fcn.0041e296
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x4c], eax
push ecx
push eax
call fcn.0041167d
cmp dword [ebp - 0x90], 0
je 0x413168
mov ecx, dword [edi + 0x8c]
sub ecx, dword [edi + 0x90]
dec ecx
test ecx, ecx
jle 0x413146
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x1c]
push 3
push esi
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push esi
jmp 0x413359
push dword [ebp - 0x28]
push edi
call fcn.0041e380
cmp eax, 0xffffffff
je 0x413168
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx]
add eax, dword [ebp - 0x24]
jmp 0x41312a
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
jmp 0x413163
cmp ecx, 0x1a
jne 0x41317d
cmp eax, edx
jne 0x41317d
push dword [ebp - 0x38]
jmp 0x41317f
dec eax
push eax
push edi
call fcn.0041e296
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x58], eax
push ecx
push eax
call fcn.0041167d
cmp dword [ebp - 0x90], 0
je 0x413212
mov eax, dword [edi + 0x8c]
sub eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x3c]
dec eax
cmp ecx, eax
jge 0x4131d4
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push ecx
jmp 0x413359
push dword [ebp - 0x28]
push edi
call fcn.0041e380
cmp eax, 0xffffffff
je 0x413212
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx]
add eax, dword [ebp - 0x24]
push 3
push esi
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [ebp - 0x3c]
jmp 0x413359
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
jmp 0x4131f1
test eax, eax
je 0x41324b
push ecx
push edi
call fcn.0041e380
mov ecx, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x41324b
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ecx + 0x38]
sub eax, dword [ecx + 0x30]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 0x30]
jmp 0x41309d
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ecx + 0x38]
sub eax, dword [ebp - 0xc]
jmp 0x4130a0
mov edx, dword [ebp - 0x38]
lea eax, [edx - 1]
cmp dword [ebp - 0x3c], eax
jne 0x41327e
xor eax, eax
inc eax
cmp edx, eax
jle 0x41327e
mov edx, eax
mov dword [ebp - 0xac], edx
jmp 0x413286
mov edx, esi
mov dword [ebp - 0xac], esi
cmp dword [ebp - 0x90], 0
je 0x4132ba
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x41329b
cmp dword [ebp - 0x6c], 0
je 0x4132ba
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x60]
push 2
mov eax, dword [eax]
add eax, ecx
pop ecx
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xf0]
sub eax, dword [ebp - 0x18]
jmp 0x4132d7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x64]
push 2
mov eax, dword [eax]
add eax, ecx
pop ecx
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xe8]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ecx + 4]
push eax
mov eax, dword [edi + 0x84]
neg eax
push eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0xe0]
push eax
push edi
call fcn.0041ce72
cmp dword [ebp - 0x6c], 0
je 0x41335f
xor eax, eax
inc eax
cmp dword [ebp - 0x38], eax
jle 0x41335f
mov eax, dword [ebp - 0x48]
test dword [eax], 0x2000
mov eax, dword [ebp - 0x28]
jne 0x41331b
mov edx, dword [eax + 0x8c]
jmp 0x41331d
mov edx, esi
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0x2c]
push 0x2001
push dword [ebp - 0xac]
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
push eax
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ecx + 4]
add eax, ecx
push eax
mov eax, dword [ebp - 0x80]
sub ecx, edx
dec eax
add eax, ecx
mov ecx, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0xe0]
push eax
push edi
call fcn.0041ce72
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x3c]
je 0x41336e
dec edx
mov dword [ebp + 0x18], edx
cmp dword [ebp - 0x30], 0xb40
jg 0x4133a8
lea ecx, [eax + 1]
mov dword [ebp - 0x3c], ecx
cmp ecx, edx
jl 0x411df1
cmp dword [ebp - 0xcc], 0
je 0x4133bb
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0x38]
add ebx, dword [ebp - 0x68]
jmp 0x4133c6
push dword [ebp - 0x50]
call fcn.0043d8ec
mov eax, edi
jmp 0x41380d
mov ecx, dword [ebp - 0xd0]
mov eax, dword [edi + 0x38]
push 0x67
pop esi
mov dword [ecx], eax
jmp 0x4137ff
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0xa4]
add ebx, eax
cmp dword [ebp - 0x114], 0
mov dword [ebp - 0xa4], ebx
jne 0x4139fd
cmp dword [ebp - 0xdc], 0
jne 0x413820
cmp dword [ebp - 0x84], ebx
push esi
cmovg ebx, dword [ebp - 0x84]
push edi
mov dword [ebp - 0xa4], ebx
call fcn.0041e296
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x30]
add ecx, 0xa
add eax, ecx
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x38]
dec eax
push eax
push edi
call fcn.0041e296
and dword [ebp - 0xfc], 0
mov dword [ebp - 0xdc], eax
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x30]
add edx, 0xfffffff6
mov eax, dword [edi + 0x68]
add ecx, edx
mov edx, dword [edi + 0x58]
mov esi, ecx
sub esi, edx
mov dword [edi + 0x5c], ecx
cmp dword [ebp - 0x38], 1
cmove eax, dword [ebp - 0xfc]
cmp dword [ebp - 0xa8], 0
jne 0x4135f7
cmp eax, 0xffffffff
je 0x4135de
test eax, eax
je 0x413526
cmp eax, 1
je 0x41351f
push 2
pop edx
cmp eax, edx
je 0x413518
cmp eax, 3
je 0x413526
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xf4]
mov dword [edi + 0x18], eax
xor eax, eax
inc eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x50], ebx
cmp ecx, eax
jle 0x41369b
test edx, edx
jne 0x41369b
cmp dword [ebp - 0xa8], edx
jne 0x41369b
mov edx, dword [ebp - 0xe0]
imul eax, edx, 0x14
add edx, ecx
mov dword [ebp - 0xe0], edx
xor edx, edx
mov dword [ebp - 0xc8], edx
add eax, dword [edi + 0xa0]
add eax, edi
mov ecx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0x38], edx
jle 0x41369b
add eax, 0x18
xor ebx, ebx
mov dword [ebp - 0xdc], eax
mov ecx, dword [eax]
mov dword [ebp - 0x84], ecx
cmp ecx, esi
jl 0x41360d
mov ecx, esi
mov esi, 0x7fff
mov dword [ebp - 0x84], ecx
jmp 0x413616
mov esi, ecx
jmp 0x413484
mov esi, edx
jmp 0x413484
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x38], ecx
jne 0x41353f
mov eax, dword [ebp - 0xdc]
mov esi, dword [eax + 0x64]
add esi, dword [eax + 0x30]
jmp 0x413484
mov eax, ebx
sub eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0xa0]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0xa0]
sar esi, 1
add esi, eax
cmp dword [edi + 0x3c], ecx
jne 0x4135a7
cmp dword [edi + 0x34], 0
je 0x41356c
push 2
pop ecx
cmp dword [edi + 0x34], ecx
jne 0x4135a7
mov ecx, dword [edi + 0xa4]
neg eax
add ecx, edi
mov dword [ecx + 0xc], eax
push dword [edi + 0x94]
push ecx
call fcn.0041daaa
mov dword [eax + 0xc], ebx
mov eax, dword [edi + 0xa4]
add eax, edi
push eax
push edi
call fcn.0041cd1e
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x38]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x413487
mov edx, dword [ebp - 0x70]
test edx, edx
jne 0x41348a
cmp esi, dword [edi + 0x58]
jge 0x4135cd
mov esi, dword [edi + 0x58]
jmp 0x41348a
cmp esi, dword [edi + 0x5c]
jle 0x41348a
mov esi, dword [edi + 0x5c]
jmp 0x41348a
mov esi, dword [edi + 0x14]
cmp esi, edx
cmovl esi, edx
mov edx, dword [ebp - 0x70]
cmp esi, ecx
jle 0x4135ef
mov esi, ecx
mov ecx, dword [ebp - 0x38]
jmp 0x41348a
mov eax, dword [edi + 0x8c]
dec eax
push eax
push edi
call fcn.0041e296
mov esi, dword [eax + 0x60]
jmp 0x413537
add eax, 0x14
mov dword [ebp - 0xdc], eax
mov eax, dword [edi + 0x84]
push ebx
push ebx
push ecx
push dword [ebp - 0xcc]
neg eax
push eax
push eax
mov eax, dword [ebp - 0xe0]
add eax, edx
push eax
push edi
call fcn.0041ce72
cmp dword [ebp - 0x6c], ebx
je 0x41366d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
push ebx
push ebx
push dword [ebp - 0x84]
push dword [ebp - 0xcc]
push dword [eax + 4]
push dword [eax + 4]
mov eax, dword [ebp - 0xc8]
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0xe0]
push eax
push edi
call fcn.0041ce72
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x84]
inc edx
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], edx
cmp edx, dword [ebp - 0x38]
jl 0x4134f6
mov ebx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x70]
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xe4]
push esi
push edi
push eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0xa0]
push ebx
neg eax
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.0041cf0c
mov eax, dword [edi + 0xa4]
add eax, edi
push eax
push edi
call fcn.0041cd1e
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x4136fa
push edi
call fcn.0041cde8
mov eax, dword [ebp - 0xa8]
test esi, esi
jne 0x4137ef
test eax, eax
je 0x41371f
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp dword [edi + 0x2c], 0xffffffff
cmove eax, ecx
xor ebx, ebx
mov dword [edi + 0x98], eax
jmp 0x4137b5
mov esi, dword [ebp - 0x38]
xor edx, edx
inc edx
xor ebx, ebx
cmp esi, edx
jle 0x41376d
mov eax, dword [edi + 0x84]
push edx
push ebx
push dword [edi + 0x14]
neg eax
push dword [edi + 0x14]
push eax
mov eax, dword [ebp - 0xf4]
neg eax
push eax
push ebx
push edi
call fcn.0041ce72
lea eax, [esi*2 + 1]
mov dword [edi + 0x98], eax
cmp dword [ebp - 0x6c], ebx
je 0x4137b5
lea eax, [esi*4 + 1]
mov dword [edi + 0x98], eax
jmp 0x4137b5
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x4137a7
cmp dword [edi + 0x38], ebx
jne 0x413785
mov dword [eax + edi], ebx
mov dword [eax + edi + 8], ebx
jmp 0x413790
mov ecx, dword [ebp - 0xf4]
neg ecx
mov dword [eax + edi], ecx
add eax, 0x10
add eax, edi
push edx
push 3
push eax
and dword [eax], 0xffffdffc
call fcn.0046bad9
xor edx, edx
inc edx
cmp dword [edi + 0x9c], ebx
je 0x4137b5
mov dword [edi + 0x98], edx
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
cmp eax, 0x870
jg 0x4137cf
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
cmp eax, 0xb40
jle 0x4137e1
mov ecx, dword [ebp - 0xd0]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x44], 0x67
mov dword [ecx], eax
push ebx
push 2
pop eax
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0046bad9
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0xc0], 0
push 0x6c
pop ebx
cmovne esi, ebx
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 0x24
xor ecx, ecx
mov dword [ebp - 0x44], 0x6c
inc ecx
lea eax, [edi + 0x10]
push ecx
push 8
push eax
call fcn.0046bad9
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0xd4]
jne 0x4138c7
xor edx, edx
inc edx
cmp ecx, edx
jne 0x4138c7
cmp dword [ebp - 0x88], 3
jne 0x4138c7
push eax
push edi
call fcn.0041e296
mov ecx, eax
mov eax, dword [ecx + 0x28]
test eax, eax
jle 0x4137ef
sub ebx, dword [ecx + 0x14]
mov edx, dword [ecx + 0x30]
sub ebx, edx
mov edi, dword [ebp - 0xa0]
sub ebx, edi
test ebx, ebx
jle 0x4137ef
cmp ebx, eax
jle 0x413893
sub dword [ecx + 0x18], eax
sub ebx, eax
add dword [ecx + 0x14], eax
mov dword [ecx + 0x28], esi
jmp 0x41389a
sub eax, ebx
mov ebx, esi
mov dword [ecx + 0x28], eax
test ebx, ebx
jle 0x4137ef
sub edx, dword [ecx + 0x18]
cmp edx, edi
jge 0x4137ef
mov esi, dword [ebp - 0x44]
sub edx, edi
neg ebx
mov dword [ecx + 0x28], edx
cmp edx, ebx
jge 0x4137f2
mov dword [ecx + 0x28], ebx
jmp 0x4137f2
cmp dword [ebp - 0x10c], 0
je 0x4137ef
test byte [edi + 0x10], 4
jne 0x4137ef
test ecx, ecx
je 0x4137ef
or eax, 0xffffffff
mov dword [ebp - 0xd4], esi
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x84], eax
mov eax, esi
mov dword [ebp - 0xd0], esi
jle 0x4137ef
mov ebx, dword [ebp - 0x84]
push eax
push edi
call fcn.0041e296
push eax
push edi
mov dword [ebp - 0xfc], eax
call fcn.0041e380
mov edx, dword [ebp - 0xc4]
cmp eax, 0xffffffff
je 0x413963
mov ecx, dword [ebp - 0xfc]
cmp dword [ecx + 0x28], edx
mov eax, dword [ecx + 0x30]
cmovl edx, dword [ecx + 0x28]
add eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0xd4]
cmp eax, ecx
mov dword [ebp - 0xc4], edx
cmovg ecx, eax
mov eax, dword [ebp - 0xd0]
test ebx, ebx
mov dword [ebp - 0xd4], ecx
cmovs ebx, eax
jmp 0x41396f
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
cmp eax, dword [ebp - 0x38]
jl 0x41390d
mov dword [ebp - 0x84], ebx
mov ebx, dword [ebp - 0xa4]
test edx, edx
jle 0x4137ef
mov eax, dword [ebp - 0x84]
test eax, eax
js 0x4137ef
cmp ecx, ebx
jle 0x4139c8
push eax
push edi
call fcn.0041e296
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x30]
add ecx, dword [ebp - 0xa0]
test ecx, ecx
jle 0x4139d5
cmp dword [ebp - 0xc4], ecx
jle 0x4139d5
mov dword [ebp - 0xc4], ecx
jmp 0x4139d5
sub ebx, ecx
cmp edx, ebx
cmovg edx, ebx
mov dword [ebp - 0xc4], edx
push esi
push edi
call fcn.0041e296
mov ebx, eax
push ebx
push edi
call fcn.0041e380
test eax, eax
je 0x4139f2
mov eax, dword [ebp - 0xc4]
sub dword [ebx + 0x28], eax
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x4139d5
jmp 0x4137ef
push 0x6b
pop esi
jmp 0x4137f2