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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4907e1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x3cf3c]
push 0
mov ecx, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], edi
call fcn.0045abbc
lea ecx, [ebx + 0x3d1c4]
push 0
mov dword [esp + 0x1c], ecx
call fcn.0045abbc
lea ecx, [ebx + 0x3d0ec]
push 0
mov dword [esp + 0x20], ecx
call fcn.0045abbc
lea ecx, [ebx + 0x3d014]
push 0
mov dword [esp + 0x24], ecx
call fcn.0045abbc
cmp esi, dword [ebx + 0x90]
jne 0x417ec4
mov eax, dword [ebx + 0x94]
dec eax
neg eax
sbb eax, eax
add eax, 2
mov dword [ebx + 0x94], eax
cmp esi, 3
ja case.default.0x417e90
jmp dword [esi*4 + 0x4189c4]
mov ecx, dword [esp + 0x20]
call fcn.0043da00
jmp 0x417ff4
cmp dword [edi + 0x80], 0
mov dword [edi + 0xd4], eax
je 0x417fe8
mov ecx, edi
call fcn.0043cb00
jmp 0x417fe8
cmp dword [edi + 0x80], 0
mov dword [edi + 0xd4], 0
je 0x417ede
mov ecx, edi
call fcn.0043cb00
mov ecx, edi
call fcn.0043d130
call fcn.0043cd60
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x80], 0
mov dword [eax + 0xd4], 0
je 0x417f08
mov ecx, eax
call fcn.0043cb00
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0043d130
call fcn.0043cd60
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x80], 0
mov dword [eax + 0xd4], 0
je 0x417f36
mov ecx, eax
call fcn.0043cb00
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0043d130
call fcn.0043cd60
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x80], 0
mov dword [eax + 0xd4], 0
je 0x417f64
mov ecx, eax
call fcn.0043cb00
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.0043d130
call fcn.0043cd60
mov dword [ebx + 0x94], 1
cmp esi, 3
ja case.default.0x417f83
jmp dword [esi*4 + 0x4189d4]
mov ecx, dword [esp + 0x14]
mov eax, 1
call fcn.0043da00
jmp 0x417ff4
mov eax, 1
mov ecx, dword [esp + 0x18]
call fcn.0043da00
jmp 0x417ff4
mov eax, 1
mov ecx, dword [esp + 0x1c]
call fcn.0043da00
jmp 0x417ff4
mov eax, 1
mov ecx, edi
call fcn.0043da00
jmp 0x417ff4
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x80], 0
mov dword [ecx + 0xd4], 1
je 0x417fe4
call fcn.0043cb00
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0043d130
call fcn.0043cd60
mov eax, dword [ebx + 0x3ce9c]
xor ecx, ecx
mov edi, 1
cmp dword [ebx + 0x94], edi
mov edx, eax
setne cl
sub edx, dword [ebx + 0x3cee0]
mov dword [ebx + 0x90], esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], edx
cmp edx, 7
ja 0x41802d
mov dword [esp + 0x30], edi
test eax, eax
jl 0x418039
cmp eax, dword [ebx + 0x3ce98]
jl 0x418043
mov dword [ebx + 0x3ce9c], 0
push ecx
mov ecx, dword [ebx + 0x3ce98]
push ecx
push 0x4b383c
mov ecx, esi
call fcn.00418a60
push 0x4b5040
call fcn.0044fa80
mov eax, dword [0x4b5040]
add esp, 4
cmp eax, edi
je 0x418076
cmp eax, 5
jne 0x41882e
or eax, 0xffffffff
cmp dword [0x4b3838], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
jle 0x418201
mov edi, 0x4b3840
mov ecx, dword [edi - 4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4181e8
mov eax, dword [0x4b5048]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4180d6
test dx, dx
je 0x4180d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4180d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4180b0
xor eax, eax
jmp 0x4180db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x418168
push 0xe
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.0040cdd0
mov esi, eax
push 0xe
lea eax, [esp + 0x30]
mov dword [esp + 0x7c], 0
or dword [esp + 0x14], 1
push eax
mov ecx, 0x4b504c
call fcn.0040cdd0
or dword [esp + 0x10], 2
mov ecx, dword [esi]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x4181e8
mov eax, dword [eax]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418156
test dx, dx
je 0x418152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418156
add eax, 4
add ecx, 4
test dx, dx
jne 0x418130
xor eax, eax
jmp 0x41815b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x418168
mov bl, 1
jmp 0x41816a
xor bl, bl
test byte [esp + 0x10], 2
je 0x418196
mov eax, dword [esp + 0x2c]
and dword [esp + 0x10], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418196
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
test byte [esp + 0x10], 1
je 0x4181ca
mov eax, dword [esp + 0x34]
and dword [esp + 0x10], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4181ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4181f2
mov eax, dword [esp + 0x28]
inc eax
add edi, 0x30
cmp eax, dword [0x4b3838]
mov dword [esp + 0x28], eax
jl 0x418097
jmp 0x4181fa
push 0x80004005
call fcn.00406520
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x41880f
lea esi, [eax + eax*2]
shl esi, 4
lea esi, [esi + 0x4b3810]
lea esp, [esp]
call fcn.00454183
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4181e8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
call fcn.00454183
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4181e8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], 1
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x50]
add ecx, 0xfffffff0
lea edi, [eax - 0x10]
mov dword [esp + 0x60], edx
mov dword [esp + 0x28], ecx
cmp edi, ecx
je 0x41832e
cmp dword [ecx + 0xc], 0
jl 0x418320
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x418320
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4182bb
cmp eax, dword [edi]
jne 0x4182bb
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4182f6
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x418829
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00470607
add esp, 0x10
mov eax, dword [esp + 0x28]
add eax, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418317
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x40], ebx
jmp 0x41832e
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00406010
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x44]
lea edi, [eax - 0x10]
add ebx, 0xfffffff0
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], ecx
cmp edi, ebx
je 0x418420
cmp dword [ebx + 0xc], 0
jl 0x418412
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x418412
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4183ab
cmp eax, dword [edi]
jne 0x4183ab
mov dword [esp + 0x28], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4183ec
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x418829
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
lea edx, [eax + eax + 2]
push edx
add edi, 0x10
push edi
lea eax, [eax + eax + 2]
push eax
add ecx, 0x10
push ecx
call fcn.00470607
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418405
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x3c], ecx
jmp 0x418420
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00406010
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x50], ecx
mov ebx, dword [esi + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esi]
lea edi, [eax - 0x10]
sub ebx, 0x10
mov dword [esp + 0x64], edx
cmp edi, ebx
je 0x4184f1
cmp dword [ebx + 0xc], 0
jl 0x4184e4
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4184e4
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x41847e
cmp eax, dword [edi]
jne 0x41847e
mov dword [esp + 0x28], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4184bf
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x418829
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
lea edx, [eax + eax + 2]
push edx
add edi, 0x10
push edi
lea eax, [eax + eax + 2]
push eax
add ecx, 0x10
push ecx
call fcn.00470607
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4184d8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esi + 0x30], ecx
jmp 0x4184f1
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x30]
call fcn.00406010
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x2c]
mov dword [esi + 0x48], edx
mov eax, dword [esi + 8]
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x3c], ecx
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x4c], edx
mov eax, dword [esi + 4]
mov dword [esi + 0x34], eax
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x40], ecx
mov edx, dword [esi + 0x14]
mov dword [esi + 0x44], edx
mov eax, dword [esi - 4]
lea edi, [eax - 0x10]
sub ebx, 0x10
cmp edi, ebx
je 0x4185d9
cmp dword [ebx + 0xc], 0
jl 0x4185cc
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4185cc
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x418566
cmp eax, dword [edi]
jne 0x418566
mov dword [esp + 0x28], edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4185a7
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x418829
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
lea edx, [eax + eax + 2]
push edx
add edi, 0x10
push edi
lea eax, [eax + eax + 2]
push eax
add ecx, 0x10
push ecx
call fcn.00470607
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4185c0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esi + 0x2c], ecx
jmp 0x4185d9
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x2c]
call fcn.00406010
mov edx, dword [esi + 0x24]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x40]
mov dword [esi + 0x54], edx
mov eax, dword [esi + 0x28]
mov dword [esi + 0x58], eax
mov dword [esi + 0x20], ecx
mov ebx, dword [esi]
add edi, 0xfffffff0
sub ebx, 0x10
mov dword [esp + 0x10], edi
cmp edi, ebx
je 0x4186b0
cmp dword [ebx + 0xc], 0
jl 0x4186a0
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4186a0
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x41863b
cmp eax, dword [edi]
jne 0x41863b
mov dword [esp + 0x28], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41867c
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x418829
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
lea edx, [eax + eax + 2]
push edx
add edi, 0x10
push edi
lea eax, [eax + eax + 2]
push eax
add ecx, 0x10
push ecx
call fcn.00470607
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418695
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x4186b0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00406010
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esi - 4]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x54]
add ebx, 0xfffffff0
sub edi, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
je 0x4187a4
cmp dword [edi + 0xc], 0
jl 0x418793
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x418793
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x41872d
cmp eax, dword [ebx]
jne 0x41872d
mov dword [esp + 0x28], ebx
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x41876e
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x418829
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax + 2]
push edx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
add ecx, 0x10
push ecx
call fcn.00470607
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418787
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esi - 4], ecx
jmp 0x4187a4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi - 4]
call fcn.00406010
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], eax
add ecx, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187db
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187f4
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x2c]
dec eax
sub esi, 0x30
mov dword [esp + 0x2c], eax
test eax, eax
jg 0x418220
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41882e
cmp dword [0x4b5040], 5
je 0x41882e
mov dword [ebx + 0x1fc], 1
jmp 0x418838
call fcn.00406450
mov dword [ebx + 0x1fc], 0
xor eax, eax
cmp dword [ebx + 0x3ce98], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
jle 0x418916
lea eax, [ebx + 0x98]
mov esi, 0x4b383c
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov ecx, dword [esi]
mov eax, dword [ebx + 0x3cea0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41888e
test dx, dx
je 0x41888a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41888e
add eax, 4
add ecx, 4
test dx, dx
jne 0x418868
xor eax, eax
jmp 0x418893
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4188d7
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x3cea4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4188c6
test dx, dx
je 0x4188c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4188c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4188a0
xor eax, eax
jmp 0x4188cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4188d7
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
sub esp, 0x30
mov edx, esp
mov dword [esp + 0x64], esp
push edx
mov edi, esi
call fcn.00407a20
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
push eax
call fcn.004070f0
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], 0x79c
inc eax
add esi, 0x30
cmp eax, dword [ebx + 0x3ce98]
mov dword [esp + 0x24], eax
jl 0x418860
mov edi, 1
cmp dword [esp + 0x30], edi
jne 0x41895e
cmp dword [ebp + 0xc], edi
jne 0x41895e
mov esi, dword [esp + 0x2c]
mov eax, esi
sub eax, dword [esp + 0x38]
mov dword [ebx + 0x3cee0], eax
jns 0x418942
mov dword [ebx + 0x3cee0], 0
mov ecx, dword [ebx + 0x3cee0]
mov edx, dword [ebx + 0x3cf08]
push edi
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetScrollPos]
push esi
push 0
jmp 0x418979
mov eax, dword [ebx + 0x3cf08]
push edi
xor esi, esi
push esi
push 2
push eax
mov dword [ebx + 0x3cee0], esi
call dword [sym.imp.USER32.dll_SetScrollPos]
push esi
push esi
mov ecx, ebx
mov dword [ebx + 0x3ce9c], esi
call fcn.004178f0
mov ecx, dword [esp + 0x14]
push edi
call fcn.0045abbc
mov ecx, dword [esp + 0x18]
push edi
call fcn.0045abbc
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0045abbc
mov ecx, dword [esp + 0x20]
push edi
call fcn.0045abbc
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8