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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x5f3a68]
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x4b8473
cmp dword [ebx + 0x38], eax
jne 0x4b8473
cmp eax, esi
mov dword [0x5f3a68], esi
je 0x4b8465
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xbc]
call eax
push esi
mov byte [0x5f49b2], 1
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call fcn.004107b0
push eax
call fcn.0047a430
add esp, 4
push eax
push ebx
call fcn.004ff5b0
add esp, 8
test al, al
je 0x4b84d1
mov edi, dword [ebx + 0x8c]
cmp edi, esi
jne 0x4b84c5
xor esi, esi
push 0x512
push str.........Common_runctl.cpp
mov edx, str.templateWindow
lea ecx, [esi + 4]
call fcn.004f1fc0
add esp, 8
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00418070
lea edx, [esp + 0x68]
push edx
push ebx
call fcn.004b8360
mov ecx, dword [esp + 0x78]
lea eax, [ecx - 1]
add esp, 8
cmp eax, ecx
mov dword [esp + 0x28], eax
jae 0x4b918c
mov eax, dword [esp + 0x28]
cmp eax, ecx
jb 0x4b8501
lea ecx, [eax + 1]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x6c]
mov edi, dword [edx + eax*4]
mov eax, dword [edi + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [0x5f3a68]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], edi
je 0x4b8547
cmp dword [edi + 0x38], eax
jne 0x4b8547
cmp eax, ebx
mov dword [0x5f3a68], ebx
je 0x4b8539
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xbc]
call eax
push ebx
mov byte [0x5f49b2], 1
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4b856c
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x28], ebx
jle 0x4b856c
mov edx, dword [0x5b4c10]
mov ecx, dword [edx + 0x20]
mov eax, dword [eax + ecx*8]
cmp eax, ebx
je 0x4b856c
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x38]
cmp esi, ebx
mov dword [edi + 0x38], ebx
je 0x4b859b
mov edx, dword [esi]
mov eax, dword [edx + 0x184]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x114]
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x104]
mov ecx, esi
call eax
mov eax, dword [edi + 0x40]
cmp eax, 0x80000000
mov dword [esp + 0x18], ebx
mov byte [esp + 0x12], 0
je 0x4b8efb
lea ecx, [eax + 1]
mov dword [esp + 0x20], eax
mov edi, 1
mov esi, 0x57f8f4
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
call fcn.004ab970
cmp dword [esp + 0x1c], ebx
je 0x4b85e5
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x10], 0x600
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x3c]
test ebx, ebx
mov dword [esp + 0x30], ebx
je 0x4b85f6
add dword [ebx], edi
mov eax, dword [eax + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0052fd70
add esp, 8
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004ac650
add esp, 0xc
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.004ac650
add esp, 0xc
cmp byte [0x5f49d5], 0
mov edi, eax
jne 0x4b864a
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
mov esi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x5f3a18
call esi
lea eax, [esp + 0x18]
cmp eax, edi
je 0x4b866c
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4b866c
add dword [eax], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4b86be
cmp byte [0x5f49d5], 0
jne 0x4b869a
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
test edi, edi
je 0x4b86b3
add dword [edi], 0xffffffff
jne 0x4b86b3
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4b8705
cmp byte [0x5f49d5], 0
jne 0x4b86e1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
test edi, edi
je 0x4b86fa
add dword [edi], 0xffffffff
jne 0x4b86fa
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test ebx, ebx
je 0x4b8744
cmp byte [0x5f49d5], 0
jne 0x4b8724
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
add dword [ebx], 0xffffffff
jne 0x4b8739
push ebx
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x4b878b
cmp byte [0x5f49d5], 0
jne 0x4b8767
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
test edi, edi
je 0x4b8780
add dword [edi], 0xffffffff
jne 0x4b8780
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x1c], 0
je 0x4b87d1
cmp byte [0x5f49d5], 0
jne 0x4b87ad
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
mov eax, dword [esp + 0x1c]
add dword [eax], 0xffffffff
jne 0x4b87c6
push eax
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x60]
mov edi, dword [edx + 0x90]
lea ecx, [esp + 0x18]
push ecx
call fcn.004fe4f0
test al, al
je 0x4b8810
mov ecx, dword [esi + 0x60]
mov edi, dword [ecx + 0x90]
lea eax, [esp + 0x18]
push eax
call fcn.00410940
mov byte [esp + 0x12], 1
jmp 0x4b8810
cmp byte [0x5f49d5], 0
mov dword [esp + 0x1c], 0
jne 0x4b8833
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, 1
lea ebx, [esp + 0x1c]
call fcn.004ab8c0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4b886b
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push edx
add eax, edi
push 0x57f8f4
push eax
call fcn.00566500
add esp, 0xc
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x4b8881
mov dword [esi + 0x10], 0x600
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x3c]
test ebx, ebx
mov dword [esp + 0x30], ebx
je 0x4b8893
add dword [ebx], 1
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0052fd70
add esp, 8
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004ac650
add esp, 0xc
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004ac650
mov edx, dword [edi + 0x60]
mov edi, dword [edx + 0x90]
add esp, 0xc
push eax
call fcn.00416320
mov edi, dword [esp + 0x40]
test edi, edi
mov byte [esp + 0x13], al
je 0x4b892e
cmp byte [0x5f49d5], 0
jne 0x4b8906
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4b8923
add dword [edi], 0xffffffff
jne 0x4b8923
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x44]
test edi, edi
je 0x4b8979
cmp byte [0x5f49d5], 0
jne 0x4b8951
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4b896e
add dword [edi], 0xffffffff
jne 0x4b896e
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test ebx, ebx
je 0x4b89bc
cmp byte [0x5f49d5], 0
jne 0x4b8998
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [ebx], 0xffffffff
jne 0x4b89b1
push ebx
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x48]
test edi, edi
je 0x4b8a07
cmp byte [0x5f49d5], 0
jne 0x4b89df
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4b89fc
add dword [edi], 0xffffffff
jne 0x4b89fc
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x4b8a4a
cmp byte [0x5f49d5], 0
jne 0x4b8a26
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [esi], 0xffffffff
jne 0x4b8a3f
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x4b8fd8
cmp byte [0x5f49d5], 0
mov dword [esp + 0x1c], 0
jne 0x4b8a78
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, 1
lea ebx, [esp + 0x1c]
call fcn.004ab8c0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4b8ab0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push eax
add ecx, edi
push 0x57f8f4
push ecx
call fcn.00566500
add esp, 0xc
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x4b8ac6
mov dword [esi + 0x10], 0x600
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x3c]
test ebx, ebx
mov dword [esp + 0x30], ebx
je 0x4b8ad7
add dword [ebx], edi
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.0052fd70
add esp, 8
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004ac650
add esp, 0xc
push eax
lea edx, [esp + 0x54]
push edx
call fcn.004ac650
add esp, 0xc
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x60]
mov edi, dword [ecx + 0x90]
call fcn.00410940
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x4b8b6d
cmp byte [0x5f49d5], 0
jne 0x4b8b45
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4b8b62
add dword [edi], 0xffffffff
jne 0x4b8b62
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x50]
test edi, edi
je 0x4b8bb8
cmp byte [0x5f49d5], 0
jne 0x4b8b90
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4b8bad
add dword [edi], 0xffffffff
jne 0x4b8bad
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test ebx, ebx
je 0x4b8bfb
cmp byte [0x5f49d5], 0
jne 0x4b8bd7
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [ebx], 0xffffffff
jne 0x4b8bf0
push ebx
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4b8c46
cmp byte [0x5f49d5], 0
jne 0x4b8c1e
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x4b8c3b
add dword [edi], 0xffffffff
jne 0x4b8c3b
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x4b8c89
cmp byte [0x5f49d5], 0
jne 0x4b8c65
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [esi], 0xffffffff
jne 0x4b8c7e
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.004b5e10
push eax
call fcn.0047a430
mov esi, dword [esp + 0x5c]
add esp, 4
push eax
push esi
call fcn.004ff5b0
add esp, 8
test al, al
je 0x4b8cb0
mov edx, dword [esp + 0x20]
mov dword [esi + 0x40], edx
cmp byte [0x5f49d5], 0
mov dword [esp + 0x1c], 0
jne 0x4b8cd3
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, 1
lea ebx, [esp + 0x1c]
call fcn.004ab8c0
cmp dword [esp + 0x1c], 0
je 0x4b8d0e
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
add edx, edi
push 0x57f8f4
push edx
call fcn.00566500
add esp, 0xc
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b8d28
mov dword [eax + 0x10], 0x600
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x3c]
test ebx, ebx
mov dword [esp + 0x30], ebx
je 0x4b8d39
add dword [ebx], edi
mov ecx, dword [esp + 0x20]
push esi
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.0052fd70
add esp, 8
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004ac650
add esp, 0xc
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004ac650
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x60]
mov ecx, dword [edx + 0x90]
add esp, 0xc
call fcn.0045d0b0
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x4b8dd3
cmp byte [0x5f49d5], 0
jne 0x4b8da7
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
mov esi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x5f3a18
call esi
test edi, edi
je 0x4b8dc6
add dword [edi], 0xffffffff
jne 0x4b8dc6
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x4b8dd9
mov esi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [esp + 0x60]
test edi, edi
je 0x4b8e20
cmp byte [0x5f49d5], 0
jne 0x4b8dfc
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
test edi, edi
je 0x4b8e15
add dword [edi], 0xffffffff
jne 0x4b8e15
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test ebx, ebx
je 0x4b8e5f
cmp byte [0x5f49d5], 0
jne 0x4b8e3f
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
add dword [ebx], 0xffffffff
jne 0x4b8e54
push ebx
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x64]
test edi, edi
je 0x4b8ea6
cmp byte [0x5f49d5], 0
jne 0x4b8e82
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
test edi, edi
je 0x4b8e9b
add dword [edi], 0xffffffff
jne 0x4b8e9b
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4b8ee9
cmp byte [0x5f49d5], 0
jne 0x4b8ec9
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call esi
add dword [edi], 0xffffffff
jne 0x4b8ede
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, 1
add dword [esp + 0x20], eax
add dword [esp + 0x24], eax
jmp 0x4b8810
mov esi, dword [edi + 0x3c]
cmp esi, ebx
je 0x4b8f05
add dword [esi], 1
cmp byte [0x5f49d5], 0
jne 0x4b8f20
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
mov edi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x5f3a18
call edi
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x4b8f38
add dword [esi], 1
mov ebx, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x5f3a18
call ebx
test esi, esi
je 0x4b8f80
cmp byte [0x5f49d5], 0
jne 0x4b8f64
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call edi
add dword [esi], 0xffffffff
jne 0x4b8f79
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call ebx
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x60]
mov edi, dword [ecx + 0x90]
lea eax, [esp + 0x18]
push eax
call fcn.004fe4f0
test al, al
je 0x4b8fdf
mov eax, dword [esi + 0x60]
mov edi, dword [eax + 0x90]
lea edx, [esp + 0x18]
push edx
call fcn.00410940
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x90]
push 0x18
call fcn.005662c8
add esp, 4
test eax, eax
je 0x4b908f
mov esi, eax
call fcn.00410ba0
mov ebx, eax
jmp 0x4b9091
cmp byte [esp + 0x12], 0
jne 0x4b8fae
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edi, dword [ecx + 0x90]
push 0x18
call fcn.005662c8
add esp, 4
test eax, eax
je 0x4b900a
mov esi, eax
call fcn.00410ba0
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x4b9010
xor ebx, ebx
lea esp, [esp]
cmp byte [ebx + 8], 0
je 0x4b9025
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4b9080
mov edx, dword [eax + 4]
mov dword [ebx + 0xc], edx
jmp 0x4b9029
mov byte [ebx + 8], 1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4b9080
cmp byte [ebx + 8], 0
je 0x4b9080
cmp dword [eax + 0xc], esi
jne 0x4b9010
cmp byte [ebx + 8], 0
je 0x4b9080
test eax, eax
je 0x4b9080
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x24], eax
je 0x4b9053
add dword [eax], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [ebx + 4]
lea edx, [esp + 0x24]
push edx
mov dword [ebx + 0xc], ecx
mov byte [ebx + 8], 0
call fcn.00410940
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b9080
mov esi, eax
call fcn.004ab850
mov esi, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
jmp 0x4b910f
xor ebx, ebx
cmp byte [ebx + 8], 0
je 0x4b90a6
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4b9101
mov ecx, dword [eax + 4]
mov dword [ebx + 0xc], ecx
jmp 0x4b90aa
mov byte [ebx + 8], 1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4b9101
cmp byte [ebx + 8], 0
je 0x4b9101
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0xc]
jne 0x4b9091
cmp byte [ebx + 8], 0
je 0x4b9101
test eax, eax
je 0x4b9101
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4b90d8
add dword [eax], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [ebx + 4]
lea edx, [esp + 0x2c]
push edx
mov dword [ebx + 0xc], ecx
mov byte [ebx + 8], 0
call fcn.00410940
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b9101
mov esi, eax
call fcn.004ab850
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esi + 0x60], 0
jle 0x4b912e
add eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4b912e
push esi
call fcn.004ff480
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4b9175
cmp byte [0x5f49d5], 0
jne 0x4b9151
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [esi], 0xffffffff
jne 0x4b916a
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
sub eax, 1
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x4b84f2
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4b919d
push eax
call fcn.0056612f
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret