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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491c81
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4ae650]
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.0045c0f7
lea ecx, [ebx + 0x3d1c4]
push 0
mov dword [esp + 0x1c], ecx
call fcn.0045c0f7
lea ecx, [ebx + 0x3d0ec]
push 0
mov dword [esp + 0x20], ecx
call fcn.0045c0f7
lea ecx, [ebx + 0x3d014]
push 0
mov dword [esp + 0x24], ecx
call fcn.0045c0f7
cmp esi, dword [ebx + 0x90]
jne 0x418104
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.0x4180d0
jmp dword [esi*4 + 0x418c04]
mov ecx, dword [esp + 0x20]
call fcn.0043e4c0
jmp 0x418234
cmp dword [edi + 0x80], 0
mov dword [edi + 0xd4], eax
je 0x418228
mov ecx, edi
call fcn.0043d830
jmp 0x418228
cmp dword [edi + 0x80], 0
mov dword [edi + 0xd4], 0
je 0x41811e
mov ecx, edi
call fcn.0043d830
mov ecx, edi
call fcn.0043de60
call fcn.0043da90
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x80], 0
mov dword [eax + 0xd4], 0
je 0x418148
mov ecx, eax
call fcn.0043d830
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0043de60
call fcn.0043da90
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x80], 0
mov dword [eax + 0xd4], 0
je 0x418176
mov ecx, eax
call fcn.0043d830
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0043de60
call fcn.0043da90
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x80], 0
mov dword [eax + 0xd4], 0
je 0x4181a4
mov ecx, eax
call fcn.0043d830
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.0043de60
call fcn.0043da90
mov dword [ebx + 0x94], 1
cmp esi, 3
ja case.default.0x4181c3
jmp dword [esi*4 + 0x418c14]
mov ecx, dword [esp + 0x14]
mov eax, 1
call fcn.0043e4c0
jmp 0x418234
mov eax, 1
mov ecx, dword [esp + 0x18]
call fcn.0043e4c0
jmp 0x418234
mov eax, 1
mov ecx, dword [esp + 0x1c]
call fcn.0043e4c0
jmp 0x418234
mov eax, 1
mov ecx, edi
call fcn.0043e4c0
jmp 0x418234
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x80], 0
mov dword [ecx + 0xd4], 1
je 0x418224
call fcn.0043d830
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0043de60
call fcn.0043da90
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 0x41826d
mov dword [esp + 0x30], edi
test eax, eax
jl 0x418279
cmp eax, dword [ebx + 0x3ce98]
jl 0x418283
mov dword [ebx + 0x3ce9c], 0
push ecx
mov ecx, dword [ebx + 0x3ce98]
push ecx
push 0x4b4844
mov ecx, esi
call fcn.00418ca0
push 0x4b6048
call fcn.00450f60
mov eax, dword [0x4b6048]
add esp, 4
cmp eax, edi
je 0x4182b6
cmp eax, 5
jne 0x418a6e
or eax, 0xffffffff
cmp dword [0x4b4840], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
jle 0x418441
mov edi, 0x4b4848
mov ecx, dword [edi - 4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x418428
mov eax, dword [0x4b6050]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418316
test dx, dx
je 0x418312
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418316
add eax, 4
add ecx, 4
test dx, dx
jne 0x4182f0
xor eax, eax
jmp 0x41831b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4183a8
push 0xe
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.0040ce60
mov esi, eax
push 0xe
lea eax, [esp + 0x30]
mov dword [esp + 0x7c], 0
or dword [esp + 0x14], 1
push eax
mov ecx, 0x4b6054
call fcn.0040ce60
or dword [esp + 0x10], 2
mov ecx, dword [esi]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x418428
mov eax, dword [eax]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418396
test dx, dx
je 0x418392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418396
add eax, 4
add ecx, 4
test dx, dx
jne 0x418370
xor eax, eax
jmp 0x41839b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4183a8
mov bl, 1
jmp 0x4183aa
xor bl, bl
test byte [esp + 0x10], 2
je 0x4183d6
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 0x4183d6
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 0x41840a
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 0x41840a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x418432
mov eax, dword [esp + 0x28]
inc eax
add edi, 0x30
cmp eax, dword [0x4b4840]
mov dword [esp + 0x28], eax
jl 0x4182d7
jmp 0x41843a
push 0x80004005
call fcn.00406550
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 0x418a4f
lea esi, [eax + eax*2]
shl esi, 4
lea esi, [esi + 0x4b4818]
lea esp, [esp]
call fcn.00455695
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x418428
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
call fcn.00455695
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x418428
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 0x41856e
cmp dword [ecx + 0xc], 0
jl 0x418560
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x418560
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4184fb
cmp eax, dword [edi]
jne 0x4184fb
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x418536
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 0x418a69
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.00471b37
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 0x418557
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 0x41856e
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00406030
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 0x418660
cmp dword [ebx + 0xc], 0
jl 0x418652
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x418652
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4185eb
cmp eax, dword [edi]
jne 0x4185eb
mov dword [esp + 0x28], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41862c
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 0x418a69
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.00471b37
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418645
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 0x418660
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00406030
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 0x418731
cmp dword [ebx + 0xc], 0
jl 0x418724
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x418724
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4186be
cmp eax, dword [edi]
jne 0x4186be
mov dword [esp + 0x28], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4186ff
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 0x418a69
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.00471b37
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418718
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 0x418731
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x30]
call fcn.00406030
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 0x418819
cmp dword [ebx + 0xc], 0
jl 0x41880c
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x41880c
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4187a6
cmp eax, dword [edi]
jne 0x4187a6
mov dword [esp + 0x28], edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4187e7
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 0x418a69
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.00471b37
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418800
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 0x418819
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x2c]
call fcn.00406030
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 0x4188f0
cmp dword [ebx + 0xc], 0
jl 0x4188e0
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4188e0
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x41887b
cmp eax, dword [edi]
jne 0x41887b
mov dword [esp + 0x28], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4188bc
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 0x418a69
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.00471b37
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4188d5
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 0x4188f0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00406030
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 0x4189e4
cmp dword [edi + 0xc], 0
jl 0x4189d3
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x4189d3
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x41896d
cmp eax, dword [ebx]
jne 0x41896d
mov dword [esp + 0x28], ebx
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4189ae
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 0x418a69
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.00471b37
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4189c7
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 0x4189e4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi - 4]
call fcn.00406030
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 0x418a1b
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 0x418a34
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 0x418460
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x418a6e
cmp dword [0x4b6048], 5
je 0x418a6e
mov dword [ebx + 0x1fc], 1
jmp 0x418a78
call fcn.00406480
mov dword [ebx + 0x1fc], 0
xor eax, eax
cmp dword [ebx + 0x3ce98], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
jle 0x418b56
lea eax, [ebx + 0x98]
mov esi, 0x4b4844
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 0x418ace
test dx, dx
je 0x418aca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418ace
add eax, 4
add ecx, 4
test dx, dx
jne 0x418aa8
xor eax, eax
jmp 0x418ad3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418b17
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x3cea4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418b06
test dx, dx
je 0x418b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418b06
add eax, 4
add ecx, 4
test dx, dx
jne 0x418ae0
xor eax, eax
jmp 0x418b0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418b17
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.00407a60
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
push eax
call fcn.00407100
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 0x418aa0
mov edi, 1
cmp dword [esp + 0x30], edi
jne 0x418b9e
cmp dword [ebp + 0xc], edi
jne 0x418b9e
mov esi, dword [esp + 0x2c]
mov eax, esi
sub eax, dword [esp + 0x38]
mov dword [ebx + 0x3cee0], eax
jns 0x418b82
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 0x418bb9
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.00417b20
mov ecx, dword [esp + 0x14]
push edi
call fcn.0045c0f7
mov ecx, dword [esp + 0x18]
push edi
call fcn.0045c0f7
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0045c0f7
mov ecx, dword [esp + 0x20]
push edi
call fcn.0045c0f7
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