Function at 0x4523c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x50e018]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jne 0x45240f
mov dword [esi + 4], 0x259
jmp 0x4525f6
mov eax, 0xf
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x68], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esi + 0xa8]
push edx
mov byte [esp + 0x74], 1
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.004543d0
add esp, 0xc
test eax, eax
jne 0x4524a8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov dword [esi + 4], 0x259
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x45247f
mov eax, dword [esp + 0x20]
push eax
call edi
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x4525f6
mov ecx, dword [esp + 0x3c]
push ecx
call edi
add esp, 4
jmp 0x4525f6
cmp dword [esi + 0xfc], ebx
je 0x4524b9
movzx edx, word [esi + 0xfc]
jmp 0x4524bd
mov edx, dword [esp + 0x10]
mov edi, dword [esi + 0x24]
cmp edi, 3
je 0x4524d9
cmp edi, 0x100b
je 0x4524d9
mov dword [esi + 4], 0x25a
jmp 0x4525e4
push edi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
mov ebx, esi
call fcn.00452d30
test eax, eax
jne 0x452534
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x452509
mov ecx, dword [esp + 0x20]
push ecx
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
cmp dword [esp + 0x50], esi
jb 0x4525f6
mov edx, dword [esp + 0x3c]
push edx
call edi
add esp, 4
jmp 0x4525f6
lea eax, [esp + 0x14]
xor edi, edi
cmp dword [esi + 0x48c], 0x10
push eax
lea eax, [esi + 0x478]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
jb 0x452554
mov eax, dword [eax]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00405490
call fcn.004541b0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edx, ecx
and edx, eax
add esp, 0x20
cmp edx, 0xffffffff
je 0x4525d2
cmp eax, edi
jg 0x4525e1
jl 0x45258a
cmp ecx, 0x190
jae 0x4525d2
mov eax, dword [esi + 0x1b4]
cmp eax, 2
jne 0x4525ad
push edi
push edi
push esi
push 0x453480
push edi
push edi
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x14], eax
jmp 0x4525b9
cmp eax, 1
jne 0x4525b9
mov ecx, esi
call fcn.004534a0
lea ecx, [esp + 0x20]
call fcn.004054e0
lea ecx, [esp + 0x3c]
call fcn.004054e0
mov eax, 1
jmp 0x4525f8
cmp eax, edi
jl 0x4525dc
jg 0x4525e1
cmp ecx, edi
ja 0x4525e1
mov ecx, 0x27d
mov dword [esi + 4], ecx
lea ecx, [esp + 0x20]
call fcn.004054e0
lea ecx, [esp + 0x3c]
call fcn.004054e0
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004a665a
mov esp, ebp
pop ebp
ret