Function at 0x4a5070
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e41f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x551644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x58], eax
call fcn.0045b370
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi], vtable.CGOpeWin::CCGOpeWin.0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov byte [esi + 0xc], 0
mov dword [esi + 0x24], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 6
mov dword [ebp - 0x28], edi
lea ecx, [ecx]
cmp dword [ebp - 0x28], 2
jae 0x4a52b7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov eax, dword [vtable.CCriticalSection.0]
mov edx, dword [eax]
mov ecx, 0x5452c8
mov byte [ebp - 4], 7
mov dword [ebp - 0x64], vtable.CCriticalLock.0
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edi
call edx
mov ebx, 1
mov dword [ebp - 0x5c], ebx
mov eax, dword [0x552af0]
mov byte [ebp - 4], 8
cmp eax, edi
jne 0x4a517f
push 0x1f0
call fcn.004f4b27
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 9
cmp ecx, edi
je 0x4a5178
call fcn.00415650
jmp 0x4a517a
xor eax, eax
mov dword [0x552af0], eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x64], vtable.CCriticalLock.0
xor esi, esi
lea esp, [esp]
cmp esi, ebx
jge 0x4a51a6
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [0x552af0]
inc esi
jmp 0x4a5190
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x4a51b1
xor esi, esi
jmp 0x4a51c7
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a51bd
mov ecx, dword [ecx + 0xc]
jmp 0x4a51bf
xor ecx, ecx
mov esi, dword [eax + 0x1c]
imul esi, ecx
add esi, edx
cmp dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax*4 + 0x54d078]
mov dword [ebp - 0x44], ecx
jne 0x4a5215
push 0x24
call fcn.004f4b27
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x4a51f8
call fcn.00412010
jmp 0x4a51fa
xor eax, eax
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0040cd60
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
test ebx, ebx
jne 0x4a5218
xor eax, eax
jmp 0x4a5229
mov ebx, dword [ebp - 0x38]
test edi, edi
je 0x4a5221
mov eax, dword [edi + 0xc]
jmp 0x4a5223
xor eax, eax
imul eax, dword [ebp - 0x34]
add eax, ebx
mov edx, dword [ebp - 0x44]
push edx
push eax
mov ecx, esi
call fcn.0048eb70
test al, al
jne 0x4a524e
push 0x533160
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 1
call fcn.004f4775
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x4c]
jne 0x4a5263
push 1
lea ecx, [ebp - 0x54]
call fcn.004752d0
mov eax, dword [ebp - 0x50]
xor esi, esi
cmp eax, esi
je 0x4a527b
mov ecx, dword [ebp - 0x34]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
cmp edi, esi
je 0x4a527b
inc dword [edi + 4]
add eax, 0xc
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 6
cmp edi, esi
je 0x4a52ad
dec dword [edi + 4]
jne 0x4a52a7
cmp byte [edi + 8], 0
je 0x4a529c
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
inc dword [ebp - 0x28]
xor edi, edi
jmp 0x4a5110
mov ebx, dword [ebp - 0x2c]
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x14], eax
xor edx, edx
xor esi, esi
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], esi
mov esi, dword [ebp - 0x54]
cmp esi, dword [ebp - 0x50]
je 0x4a534a
mov ecx, dword [esi]
test ecx, ecx
jne 0x4a52e0
xor eax, eax
jmp 0x4a52f6
mov eax, dword [esi + 8]
test eax, eax
je 0x4a52ec
mov edx, dword [eax + 0xc]
jmp 0x4a52ee
xor edx, edx
mov eax, dword [esi + 4]
imul eax, edx
add eax, ecx
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
test ecx, ecx
jne 0x4a5304
xor eax, eax
jmp 0x4a531a
mov eax, dword [esi + 8]
test eax, eax
je 0x4a5310
mov edx, dword [eax + 0xc]
jmp 0x4a5312
xor edx, edx
mov eax, dword [esi + 4]
imul eax, edx
add eax, ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add ebx, eax
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push ecx
add eax, 0x14
push eax
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_UnionRect]
mov ebx, dword [ebp - 0x2c]
add esi, 0xc
jmp 0x4a52d1
push 0x24
call fcn.004f4b27
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
xor edi, edi
mov byte [ebp - 4], 0xb
cmp esi, edi
je 0x4a5499
mov dword [esi], vtable.Graphics::CSurface.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 0xc
cmp dword [esi + 4], edi
je 0x4a545f
mov ecx, 0x5537a9
call fcn.004047e0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x44], ecx
mov ecx, dword [0x552adc]
mov eax, dword [ecx]
cmp eax, edi
je 0x4a545f
mov edx, dword [ecx + 8]
cmp edx, edi
je 0x4a53cb
mov edx, dword [edx + 0xc]
jmp 0x4a53cd
xor edx, edx
mov edi, dword [ecx + 4]
imul edi, edx
mov edx, dword [0x5515b0]
add edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov ecx, str.SurfaceRelease
mov byte [ebp - 4], 0xd
test ecx, 0xffff0000
jne 0x4a5488
mov edx, ecx
movzx ebx, dx
push 0
push ebx
call fcn.00401180
add esp, 8
test eax, eax
je 0x4a541e
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404950
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44]
push ecx
call edi
add esp, 4
xor edi, edi
xor ecx, ecx
xor eax, eax
push edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], ecx
push 0x517abc
lea ecx, [esi + 0x1c]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0x18], al
call fcn.004048b0
mov dword [esi + 0x20], edi
jmp 0x4a549b
push 0xe
push str.SurfaceRelease
lea ecx, [ebp - 0x28]
call fcn.004048b0
jmp 0x4a5421
xor esi, esi
push esi
lea ecx, [ebx + 0x38]
mov byte [ebp - 4], 6
call fcn.0040cd60
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x38]
sub eax, dword [ebx + 0x18]
sub edx, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x40], ecx
test esi, esi
jne 0x4a54c5
xor ecx, ecx
jmp 0x4a54db
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x4a54d1
mov edi, dword [ecx + 0xc]
jmp 0x4a54d3
xor edi, edi
mov ecx, dword [ebx + 0x3c]
imul ecx, edi
add ecx, esi
push 1
push 1
push eax
push edx
call fcn.0040fb20
test al, al
jne 0x4a54ff
push 0x533160
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], 1
call fcn.004f4775
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebx + 0x18]
mov edi, dword [eax]
test ecx, ecx
jne 0x4a5512
xor eax, eax
jmp 0x4a5528
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4a551e
mov edx, dword [eax + 0xc]
jmp 0x4a5520
xor edx, edx
mov eax, dword [ebx + 0x3c]
imul eax, edx
add eax, ecx
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x54]
mov dword [eax + 0x10], edi
mov dword [ebp - 0x44], esi
cmp esi, dword [ebp - 0x50]
je 0x4a56c1
mov edx, dword [esi]
test edx, edx
jne 0x4a5547
xor eax, eax
jmp 0x4a555d
mov eax, dword [esi + 8]
test eax, eax
je 0x4a5553
mov ecx, dword [eax + 0xc]
jmp 0x4a5555
xor ecx, ecx
mov eax, dword [esi + 4]
imul eax, ecx
add eax, edx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov edi, dword [ebp - 0x40]
sub ecx, dword [edi]
sub eax, dword [ebx + 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
test edx, edx
jne 0x4a5579
xor ecx, ecx
jmp 0x4a558f
mov eax, dword [esi + 8]
test eax, eax
je 0x4a5585
mov eax, dword [eax + 0xc]
jmp 0x4a5587
xor eax, eax
mov ecx, dword [esi + 4]
imul ecx, eax
add ecx, edx
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x4a559a
xor eax, eax
jmp 0x4a55b0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4a55a6
mov edx, dword [eax + 0xc]
jmp 0x4a55a8
xor edx, edx
mov eax, dword [ebx + 0x3c]
imul eax, edx
add eax, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4a569d
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x4a569d
mov ecx, 0x5537a9
call fcn.004047e0
mov ecx, dword [0x552adc]
mov edx, dword [ecx]
test edx, edx
je 0x4a569d
mov eax, dword [ecx + 8]
test eax, eax
je 0x4a55ef
mov eax, dword [eax + 0xc]
jmp 0x4a55f1
xor eax, eax
mov esi, dword [ecx + 4]
imul esi, eax
add esi, edx
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov ecx, str.SurfaceBlt
mov byte [ebp - 4], 0xe
test ecx, 0xffff0000
jne 0x4a5640
mov edx, ecx
movzx edi, dx
push 0
push edi
call fcn.00401180
add esp, 8
test eax, eax
je 0x4a564f
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404950
jmp 0x4a564f
push 0xa
push str.SurfaceBlt
lea ecx, [ebp - 0x28]
call fcn.004048b0
mov edi, dword [ebp - 0x28]
mov eax, dword [esi + 4]
push edi
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a567f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
push eax
call esi
add esp, 0x20
test al, al
jne 0x4a56b2
push 0x533160
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], 1
call fcn.004f4775
add dword [ebp - 0x44], 0xc
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x44]
jmp 0x4a5534
cmp dword [ebp - 0x54], 0
mov byte [ebp - 4], 5
je 0x4a56ec
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x48]
push eax
push ecx
push esi
call fcn.00470560
add esp, 0x10
push esi
call fcn.004f476a
add esp, 4
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x54]
cmp ecx, eax
je 0x4a571f
mov edx, dword [ebp - 0x58]
push edx
push ecx
push eax
push eax
call fcn.004063e0
mov ecx, dword [ebp - 0x58]
add esp, 0x10
push ecx
mov esi, eax
mov eax, dword [ebx + 0x58]
lea edx, [ebx + 0x60]
push edx
push eax
push esi
call fcn.00470560
add esp, 0x10
mov dword [ebx + 0x58], esi
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 6
jae 0x4a59fc
push 0x18
call fcn.004f4b27
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
mov byte [ebp - 4], 0xf
cmp ecx, ebx
je 0x4a5752
call fcn.004a2750
mov esi, eax
jmp 0x4a5754
xor esi, esi
xor edi, edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp esi, ebx
je 0x4a57a2
mov edi, esi
push 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
call fcn.004f4b27
add esp, 4
cmp eax, ebx
je 0x4a5788
mov dword [eax], vtable.yaneuraoGameSDK3rd::YTL::nonarray_ref_object_class_CGOpeWin::CCGOpeWin::button_.0
mov dword [eax + 0x14], esi
jmp 0x4a578a
xor eax, eax
mov ecx, 1
mov dword [eax + 4], ecx
mov byte [eax + 8], cl
mov dword [eax + 0xc], 0x18
mov dword [ebp - 0x30], eax
mov dword [eax + 0x10], ecx
mov eax, dword [edi]
mov byte [ebp - 4], 0x10
cmp eax, ebx
jne 0x4a57b0
xor edi, edi
jmp 0x4a57c6
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x4a57bc
mov ecx, dword [ecx + 0xc]
jmp 0x4a57be
xor ecx, ecx
mov edi, dword [edi + 4]
imul edi, ecx
add edi, eax
mov eax, dword [vtable.CCriticalSection.0]
mov edx, dword [eax]
mov ecx, 0x5452c8
mov dword [ebp - 0x50], vtable.CCriticalLock.0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ebx
call edx
mov ebx, 1
mov dword [ebp - 0x48], ebx
mov eax, dword [0x552af0]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x4a581e
push 0x1f0
call fcn.004f4b27
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x4a5817
call fcn.00415650
jmp 0x4a5819
xor eax, eax
mov dword [0x552af0], eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x50], vtable.CCriticalLock.0
xor esi, esi
jmp 0x4a5830
cmp esi, ebx
jge 0x4a5846
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [0x552af0]
inc esi
jmp 0x4a5830
mov esi, dword [eax + 0x18]
test esi, esi
jne 0x4a5851
xor ecx, ecx
jmp 0x4a5867
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a585d
mov edx, dword [ecx + 0xc]
jmp 0x4a585f
xor edx, edx
mov ecx, dword [eax + 0x1c]
imul ecx, edx
add ecx, esi
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax*4]
xor esi, esi
push esi
lea edx, [eax*8 + 0x54d080]
push edx
push edi
call fcn.0048b850
test al, al
jne 0x4a5897
push 0x533160
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 1
call fcn.004f4775
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
cmp ebx, esi
jne 0x4a58a5
xor eax, eax
jmp 0x4a58b8
cmp edi, esi
je 0x4a58ae
mov ecx, dword [edi + 0xc]
jmp 0x4a58b0
xor ecx, ecx
mov eax, dword [ebp - 0x34]
imul eax, ecx
add eax, ebx
mov edx, dword [eax]
cmp edx, esi
jne 0x4a58c2
xor eax, eax
jmp 0x4a58d8
mov ecx, dword [eax + 8]
cmp ecx, esi
je 0x4a58ce
mov ecx, dword [ecx + 0xc]
jmp 0x4a58d0
xor ecx, ecx
mov eax, dword [eax + 4]
imul eax, ecx
add eax, edx
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
cmp byte [eax + 0x2c], 0
je 0x4a58f5
add eax, 0x30
jmp 0x4a58f8
add eax, 0x24
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x2c]
add eax, 0x14
lea edx, [ebp - 0x24]
push edx
push eax
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_UnionRect]
cmp ebx, esi
jne 0x4a5926
xor ecx, ecx
jmp 0x4a5937
cmp edi, esi
je 0x4a592f
mov ecx, dword [edi + 0xc]
jmp 0x4a5931
xor ecx, ecx
imul ecx, dword [ebp - 0x34]
add ecx, ebx
mov esi, dword [ecx]
test esi, esi
jne 0x4a5941
xor eax, eax
jmp 0x4a5957
mov eax, dword [ecx + 8]
test eax, eax
je 0x4a594d
mov edx, dword [eax + 0xc]
jmp 0x4a594f
xor edx, edx
mov eax, dword [ecx + 4]
imul eax, edx
add eax, esi
cmp byte [eax + 0x2c], 0
je 0x4a5962
add eax, 0x30
jmp 0x4a5965
add eax, 0x24
mov edx, dword [eax]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x4a5987
inc dword [edi + 4]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x64]
push edx
add ecx, 0x54
call fcn.004a0060
mov esi, dword [ebp - 0x5c]
xor ebx, ebx
mov byte [ebp - 4], 0x10
cmp esi, ebx
je 0x4a59c6
dec dword [esi + 4]
jne 0x4a59c0
cmp byte [esi + 8], bl
je 0x4a59b5
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 4], 5
cmp edi, ebx
je 0x4a59f1
dec dword [edi + 4]
jne 0x4a59eb
cmp byte [edi + 8], bl
je 0x4a59e0
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
inc dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
jmp 0x4a5726
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
xor edi, edi
mov dword [ebx + 0x30], ecx
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 4]
push 0x16c
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x44], edi
call fcn.004f4670
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x14
cmp eax, edi
je 0x4a5a57
push fcn.004120d0
push fcn.00412010
push 0xa
lea esi, [eax + 4]
push 0x24
push esi
mov dword [eax], 0xa
call fcn.004f6091
jmp 0x4a5a59
xor esi, esi
mov ecx, dword [ebx + 0x50]
mov byte [ebp - 4], 5
cmp ecx, edi
je 0x4a5a8b
dec dword [ecx + 4]
jne 0x4a5a85
cmp byte [ecx + 8], 0
je 0x4a5a75
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [ebx + 0x50]
cmp ecx, edi
je 0x4a5a85
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [ebx + 0x50], edi
mov dword [ebx + 0x48], edi
mov ecx, dword [ebx + 0x50]
cmp ecx, edi
je 0x4a5a9b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 0x18
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x48], esi
call fcn.004f4b27
add esp, 4
cmp eax, edi
je 0x4a5aba
mov dword [eax], vtable.yaneuraoGameSDK3rd::YTL::array_ref_object_class_Graphics::CSurface_.0
mov dword [eax + 0x14], esi
jmp 0x4a5abc
xor eax, eax
mov dword [ebx + 0x50], eax
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x50]
mov byte [eax + 8], 1
mov eax, dword [ebx + 0x50]
mov dword [eax + 0xc], 0x24
mov eax, dword [ebx + 0x50]
xor edx, edx
mov dword [eax + 0x10], 0xa
mov dword [ebp - 0x40], edx
mov eax, dword [ebx + 0x50]
cmp eax, edi
jne 0x4a5af1
xor eax, eax
jmp 0x4a5af4
mov eax, dword [eax + 0x10]
cmp edx, eax
jge 0x4a5bf9
mov ecx, dword [ebx + 0x48]
cmp ecx, edi
jne 0x4a5b07
xor edi, edi
jmp 0x4a5b1f
mov eax, dword [ebx + 0x50]
cmp eax, edi
je 0x4a5b13
mov eax, dword [eax + 0xc]
jmp 0x4a5b15
xor eax, eax
mov edi, dword [ebx + 0x4c]
add edi, edx
imul edi, eax
add edi, ecx
mov eax, dword [vtable.CCriticalSection.0]
mov edx, dword [eax]
mov ecx, 0x5452c8
mov dword [ebp - 0x50], vtable.CCriticalLock.0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0
call edx
mov ebx, 1
mov dword [ebp - 0x48], ebx
mov eax, dword [0x552af0]
mov byte [ebp - 4], 0x15
test eax, eax
jne 0x4a5b7b
push 0x1f0
call fcn.004f4b27
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x4a5b74
call fcn.00415650
jmp 0x4a5b76
xor eax, eax
mov dword [0x552af0], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x50], vtable.CCriticalLock.0
xor esi, esi
cmp esi, ebx
jge 0x4a5b9e
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [0x552af0]
inc esi
jmp 0x4a5b88
mov esi, dword [eax + 0x18]
test esi, esi
jne 0x4a5ba9
xor ecx, ecx
jmp 0x4a5bbf
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a5bb5
mov edx, dword [ecx + 0xc]
jmp 0x4a5bb7
xor edx, edx
mov ecx, dword [eax + 0x1c]
imul ecx, edx
add ecx, esi
mov eax, dword [ebp - 0x40]
mov edx, dword [eax*4 + 0x54d1e8]
push edx
push edi
call fcn.0048eb70
test al, al
jne 0x4a5be9
push 0x533160
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 1
call fcn.004f4775
inc dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x2c]
xor edi, edi
jmp 0x4a5ae6
push 0x48
call fcn.004f4b27
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0x17
cmp ecx, edi
je 0x4a5c1b
mov edx, dword [ebp - 0x58]
push edx
call fcn.004a4900
jmp 0x4a5c1d
xor eax, eax
push eax
lea ecx, [ebx + 0x64]
mov byte [ebp - 4], 5
call fcn.0049ba80
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret 4