Function at 0x10004720
Capabilities:
Resume thread

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push 0x208
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x208
push 0
push eax
mov dword [0x100495bc], eax
call fcn.10007043
mov edx, dword [0x100495bc]
add esp, 0xc
mov dword [esp + 0x2c], edx
lea eax, [edx + 0xfc]
mov dword [edx + 0xf8], edx
mov dword [esp + 0x44], eax
mov dword [edx + 0x24], edx
mov dword [edx + 0x64], 0x19ad
mov dword [edx + 0x1c4], 0x119b
mov dword [edx + 0x12c], edx
mov dword [edx + 0x58], edx
mov dword [edx + 0x38], edx
mov dword [edx + 0x19c], edx
mov dword [edx + 0x1c], 0x11d7
mov dword [edx + 0x40], 0x174d
mov dword [edx + 0x14c], 0x1785
mov dword [edx], edx
mov dword [edx + 8], 0x1839
mov dword [edx + 0x14], 0x1a4d
mov dword [edx + 0x198], 0x16cb
mov dword [edx + 0x1c8], esi
mov dword [edx + 0x118], eax
mov eax, dword [edx + 0x50]
sub dword [edx + 0x118], eax
inc eax
mov dword [edx + 0x50], eax
mov eax, dword [edx + 0xf8]
imul eax, dword [eax + 0x198], 0x9853e2c
cmp eax, 0x119a
jae 0x10004800
mov ecx, edx
mov eax, 0xffffff04
sub eax, edx
add dword [ecx + 0x50], eax
mov dword [esp + 0x14], 0x16cb
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0x1a4d
mov dword [esp + 0x30], 0x174d
mov dword [esp + 0x1c], 0x1784
mov dword [esp + 0x28], 0x14e4
mov dword [esp + 0x34], 0x1a46
mov dword [esp + 0x20], 0x13fc
mov dword [esp + 0x18], 0x1839
mov eax, dword [esp + 0x1c]
sub eax, 0x234
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
sub eax, 0x662
mov ebx, dword [esp + 0x18]
add ebp, 0x16cb
mov edx, dword [esp + 0x20]
sub ebx, 0x49e
mov dword [esp + 0x38], eax
sub edx, 0x16a
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edi, 0x14e4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
sub ecx, 0x330
mov eax, dword [esp + 0x10]
add eax, 0x156f
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x38]
push esi
push edi
sub esp, 0xc
push edx
mov edx, dword [esp + 0x60]
push ebx
push ebp
push dword [esp + 0x64]
call fcn.10001500
mov dword [esp + 0x40], eax
add esp, 0x30
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub eax, 0x6a2
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add eax, 0x738
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x20]
add eax, 0x43d
mov ebx, dword [esp + 0x34]
add ebp, 0x43d
mov dword [esp + 0x3c], eax
sub ebx, 0x2f9
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
sub edi, 0x6a2
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
sub edx, 0x5a7
mov eax, dword [esp + 0x34]
add ecx, 0x174
sub eax, 0x562
push eax
push ecx
push edx
push ecx
push esi
push edi
push ecx
push ebx
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
push ebx
push ebp
push dword [esp + 0x64]
push dword [esp + 0x64]
push ecx
call fcn.100097a0
mov dword [esp + 0x44], eax
add esp, 0x34
mov ebp, dword [esp + 0x18]
lea eax, [ebx + 0x9c]
mov dword [ebx + 0xf0], eax
mov eax, dword [ebx + 0x98]
sub dword [ebx + 0x10], eax
dec eax
mov dword [ebx + 0x98], eax
mov eax, dword [ebx + 8]
xor eax, 0x174d
sub dword [ebx + 0x50], eax
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub ebx, 0x439
mov edi, dword [esp + 0x10]
add edx, 0x21d
mov eax, dword [esp + 0x24]
add edi, 0x934
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub esi, 0x15c
mov eax, dword [esp + 0x14]
sub ecx, 0x37
sub eax, 0x13b
push eax
push ecx
push esi
push ecx
mov ecx, dword [esp + 0x3c]
push edi
push edx
push ebx
lea edx, [ebp - 0x5a7]
call fcn.10001cb0
mov dword [esp + 0x50], eax
add esp, 0x1c
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add ebp, 0x1e7
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
sub ebx, 0x6a2
mov eax, dword [esp + 0x24]
sub edi, 0x82
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
sub esi, 7
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
sub edx, 0x265
mov eax, dword [esp + 0x14]
sub ecx, 0x4bb
sub eax, 0x1d0
push eax
push ecx
push dword [esp + 0x34]
push edx
push ecx
push esi
push ecx
push edi
push ebx
push ecx
push ebp
sub esp, 8
call fcn.1000dc40
add esp, 0x34
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sub eax, 0x3e0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
sub eax, 0x1b5
mov ebx, dword [esp + 0x34]
sub ebp, 0x15c
mov edi, dword [esp + 0x30]
sub ebx, 0x3b9
mov esi, dword [esp + 0x28]
mov dword [esp + 0x40], eax
sub esi, 0x1b5
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add edx, 0x2e9
mov eax, dword [esp + 0x24]
add ecx, 0x292
sub eax, 0x1de
push eax
push dword [esp + 0x30]
push ecx
push edx
mov edx, dword [esp + 0x4c]
sub esp, 8
push esi
push edi
push ebx
push ebp
push dword [esp + 0x68]
sub esp, 8
call fcn.10003ed0
mov dword [esp + 0x50], eax
add esp, 0x34
mov eax, dword [esp + 0x28]
add eax, 0xac
cmp dword [esp + 0x10], eax
jg 0x10004c2d
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
add eax, 0x536
cmp dword [esp + 0x24], eax
mov ecx, dword [esp + 0x30]
je 0x10004b7d
mov eax, dword [esp + 0x18]
sub ecx, 0x576
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
sub edi, 0x3b9
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esi, 0x46d
push ebx
sub edx, 0x6a2
push edx
push esi
sub esp, 8
push edi
call fcn.100094a0
add esp, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x140]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov esi, dword [esp + 0x44]
imul ecx, dword [esp + 0x10]
mov eax, dword [esi]
and eax, dword [ebx + 8]
or dword [ebx + 0xc8], eax
sub ecx, 0x1a4d
mov eax, dword [ebx + 0x1b8]
add eax, dword [ebx + 0x16c]
xor eax, dword [ebx + 0x13c]
push eax
mov eax, dword [ebx + 0x50]
xor eax, dword [ebx + 0x19c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx + 0x19c]
add eax, dword [ebx + 0x50]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
or eax, dword [ebx + 0x12c]
or eax, 0x1550
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x154]
imul ecx, eax
mov eax, dword [esp + 0x24]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov eax, dword [esp + 0x14]
mov ecx, 0x1784
sub ecx, eax
mov eax, dword [esp + 0x1c]
add eax, ecx
or dword [ebx + 0x194], eax
mov eax, dword [esi]
or eax, dword [ebx + 0x24]
pop edi
or eax, 0x13a4
or dword [ebx + 0xd8], eax
mov eax, dword [ebx + 0x140]
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0x140]
pop ebx
add esp, 0x38
ret