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

Disassembly:
push 0xffffffffffffffff
push 0x4f3f66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov eax, dword [0x517ad4]
xor eax, esp
push ebx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x74], ebp
je 0x4632f7
cmp word [eax], bx
je 0x4632f7
push esi
push edi
mov edi, 0x1000
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [esp + 0xf4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4632f0
lea esi, [esp + 0x24]
mov dword [esp + 0x28], 0xc0000000
call fcn.004135df
test eax, eax
jne 0x462469
cmp dword [esp + 0x44], ebx
je 0x4623e2
call fcn.00413661
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x462409
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x46242c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x44], ebx
je 0x462443
lea esi, [esp + 0x24]
call fcn.00413661
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
cmp esi, ebx
je 0x462452
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp edi, 0xffffffff
je 0x4632f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x462571
push 1
push ebp
call fcn.004607d8
mov al, 0x54
push 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xc0], al
mov byte [esp + 0xc1], al
mov eax, dword [ebp + 0x1c]
push ecx
lea ecx, [esp + 0xc4]
mov byte [esp + 0xc6], 0x42
mov byte [esp + 0xc7], 0x4c
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], 0xffffffff
mov dword [esp + 0xd0], eax
call fcn.004243d0
cmp eax, 0x10
je 0x462507
cmp dword [esp + 0x44], ebx
je 0x4624d8
lea esi, [esp + 0x24]
call fcn.00413661
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4624ef
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4632f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x462571
lea eax, [ebp + 0x10]
lea edi, [esp + 0x24]
call fcn.00462080
test eax, eax
je 0x4624c9
mov eax, 0x522b94
call fcn.00462080
test eax, eax
je 0x4624c9
mov eax, 0x522b98
call fcn.00462080
test eax, eax
je 0x4624c9
lea edx, [esp + 0x8c]
push edx
call fcn.0049c88a
mov byte [esp + 0xd8], 1
mov eax, dword [ebp + 4]
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ebx
jg 0x4625a0
lea eax, [esp + 0x8c]
call fcn.004655c1
lea eax, [esp + 0x24]
call fcn.00413515
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xc8]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc0]
pop ebx
xor ecx, esp
call fcn.004ebd70
add esp, 0xcc
ret 0xc
mov ebp, dword [esp + 0x7c]
mov edi, edi
mov eax, dword [esp + 0x5c]
mov ecx, ebp
call fcn.0045d61b
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x50], esi
je 0x4625bc
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
jne 0x4625cd
mov byte [esp + 0xd8], 1
jmp 0x462bd2
push esi
lea eax, [esp + 0x68]
call fcn.004042f5
mov byte [esp + 0xd8], 8
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4626e8
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x46260f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46260f
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462bd2
mov dword [esp + 0x50], esi
mov byte [esp + 0xd8], 0xd
mov eax, dword [esi + 0x50]
test eax, eax
je 0x46263f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x4626b3
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x4626a6
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462678
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462678
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x46269d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46269d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x462653
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x38]
mov eax, dword [0x51b43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462848
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x46284e
push edi
call ebx
add esp, 4
jmp 0x46284e
lea eax, [esp + 0x64]
lea edi, [esp + 0x24]
call fcn.00462080
test eax, eax
je 0x462bec
mov eax, dword [esp + 0x68]
test ax, ax
mov dword [esp + 0x10], 0
mov dword [esp + 0x60], eax
je 0x46271a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x4628b7
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x94]
push ecx
mov ebx, esi
call fcn.00464d6e
test al, al
je 0x4628b7
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.004243d0
cmp eax, 2
jne 0x462d6f
mov al, byte [esp + 0x10]
mov bl, 1
test bl, al
je 0x462782
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
call fcn.004243d0
cmp eax, 2
jne 0x462efe
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4627a3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4627a3
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462bd2
mov dword [esp + 0x50], esi
mov byte [esp + 0xd8], 0x21
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4627d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x4626b3
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x4626a6
mov edi, edi
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462815
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462815
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x46283a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46283a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x4627f0
jmp 0x4626a6
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x46286a
push edi
call ebp
test eax, eax
jg 0x46286a
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462886
push edi
call ebp
test eax, eax
jg 0x462886
push edi
call ebx
add esp, 4
mov byte [esp + 0xd8], 1
mov edi, dword [esi + 8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462bc9
push edi
call ebp
test eax, eax
jg 0x462bc9
push edi
call ebx
add esp, 4
jmp 0x462bc9
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0049b1c9
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], ebx
je 0x4628d4
or dword [esp + 0x10], 2
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esp + 0x88], eax
jl 0x4628e7
or dword [esp + 0x10], 4
push esi
call fcn.0045e762
mov edx, dword [esp + 0x10]
or edx, 0x40
mov dword [esp + 0x84], eax
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x30]
test al, al
mov byte [esp + 0x4f], al
je 0x462915
mov eax, edx
or eax, 0x80
mov dword [esp + 0x10], eax
push esi
call fcn.00413c82
mov edx, dword [0x51b438]
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x14], edx
cmp dword [0x522b88], ebx
mov dword [esp + 0x70], ebx
mov word [esp + 0x74], bx
mov word [esp + 0x76], bx
mov dword [esp + 0x78], ebx
jne 0x462950
cmp dword [esi + 0x30], ebx
je 0x4629d6
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
or ecx, 8
push esi
lea eax, [esp + 0x84]
mov dword [esp + 0x14], ecx
call fcn.00413c50
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0040311c
lea eax, [esp + 0x80]
call fcn.004030da
mov eax, dword [esi + 0x1c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov cx, word [esi + 0x14]
mov word [esp + 0x74], cx
mov dx, word [esi + 0x16]
mov word [esp + 0x76], dx
mov edi, dword [esi + 0x20]
mov dword [esp + 0x78], edi
cmp dword [ebp - 8], ebx
jne 0x4629c1
cmp eax, ebx
jne 0x4629c1
cmp cx, bx
jne 0x4629c1
cmp dx, bx
jne 0x4629c1
cmp edi, ebx
je 0x4629c6
or dword [esp + 0x10], 0x10
cmp word [esp + 0x58], bx
mov ebp, dword [esp + 0x64]
je 0x4629d6
or dword [esp + 0x10], 0x20
push 2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.004243d0
cmp eax, 2
jne 0x46308e
test byte [esp + 0x10], 1
je 0x462a0f
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x68]
call fcn.004243d0
cmp eax, 2
jne 0x463210
test byte [esp + 0x10], 2
je 0x462a2b
lea eax, [esp + 0x18]
lea edi, [esp + 0x24]
call fcn.00462080
test eax, eax
je 0x463285
test byte [esp + 0x10], 4
je 0x462a4e
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x90]
call fcn.004243d0
cmp eax, 4
jne 0x463285
test byte [esp + 0x10], 8
je 0x462a6e
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x74]
call fcn.004243d0
cmp eax, 4
jne 0x463285
test byte [esp + 0x10], 0x10
je 0x462aa3
lea eax, [esp + 0x14]
lea edi, [esp + 0x24]
call fcn.00462080
test eax, eax
je 0x463285
push 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x78]
call fcn.004243d0
cmp eax, 0xc
jne 0x463285
test byte [esp + 0x10], 0x20
je 0x462b38
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
call fcn.004243d0
cmp eax, 2
jne 0x463285
cmp word [esp + 0x58], bx
jle 0x462b38
mov edi, edi
mov eax, dword [0x51b438]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push esi
mov byte [esp + 0xe8], 0x2a
call fcn.00413ca5
lea eax, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.00462040
test eax, eax
lea eax, [esp + 0x54]
je 0x463277
call fcn.00462080
test eax, eax
lea eax, [esp + 0x54]
je 0x463277
call fcn.004030da
lea eax, [esp + 0x1c]
call fcn.004030da
movsx eax, word [esp + 0x58]
inc ebx
cmp ebx, eax
jl 0x462ad0
test byte [esp + 0x10], 0x40
je 0x462b5b
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x8c]
call fcn.004243d0
cmp eax, 4
jne 0x463285
mov al, byte [esp + 0x10]
test al, al
jns 0x462b7c
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x57]
call fcn.004243d0
cmp eax, 1
jne 0x463285
lea eax, [esp + 0x14]
call fcn.004030da
lea eax, [esp + 0x18]
call fcn.004030da
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462baf
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462baf
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462bd2
mov edi, esi
call fcn.00404381
push esi
call fcn.004d9160
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x46259a
jmp 0x462557
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462c0d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462c0d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462d3e
mov dword [esp + 0x50], esi
mov byte [esp + 0xd8], 0x12
mov eax, dword [esi + 0x50]
test eax, eax
je 0x462c3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x462cb1
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x462ca4
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462c76
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462c76
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462c9b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462c9b
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x462c51
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x38]
mov eax, dword [0x51b43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462cdb
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x462ce1
push edi
call ebx
add esp, 4
jmp 0x462ce1
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462cfd
push edi
call ebp
test eax, eax
jg 0x462cfd
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462d19
push edi
call ebp
test eax, eax
jg 0x462d19
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462d35
push edi
call ebp
test eax, eax
jg 0x462d35
push edi
call ebx
add esp, 4
push esi
call fcn.004d9160
add esp, 4
lea eax, [esp + 0x8c]
call fcn.004655c1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x462d5b
lea esi, [esp + 0x24]
call fcn.00413661
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4624ef
push eax
push 0
jmp 0x4624e2
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462d90
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462d90
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462ecd
mov dword [esp + 0x50], esi
mov byte [esp + 0xd8], 0x17
mov eax, dword [esi + 0x50]
test eax, eax
je 0x462dc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x462e40
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x462e33
jmp 0x462de0
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462e05
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462e05
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462e2a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462e2a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x462de0
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x38]
mov eax, dword [0x51b43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462e6a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x462e70
push edi
call ebx
add esp, 4
jmp 0x462e70
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462e8c
push edi
call ebp
test eax, eax
jg 0x462e8c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462ea8
push edi
call ebp
test eax, eax
jg 0x462ea8
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462ec4
push edi
call ebp
test eax, eax
jg 0x462ec4
push edi
call ebx
add esp, 4
push esi
call fcn.004d9160
add esp, 4
lea eax, [esp + 0x8c]
call fcn.004655c1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x462eea
lea esi, [esp + 0x24]
call fcn.00413661
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4624ef
push eax
push 0
jmp 0x4624e2
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462f1f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462f1f
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x46305d
mov dword [esp + 0x50], esi
mov byte [esp + 0xd8], 0x1c
mov eax, dword [esi + 0x50]
test eax, eax
je 0x462f4e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x462fd0
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x462fc3
jmp 0x462f70
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462f95
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462f95
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x462fba
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462fba
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x462f70
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x38]
mov eax, dword [0x51b43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462ffa
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x463000
push edi
call ebx
add esp, 4
jmp 0x463000
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x46301c
push edi
call ebp
test eax, eax
jg 0x46301c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x463038
push edi
call ebp
test eax, eax
jg 0x463038
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x463054
push edi
call ebp
test eax, eax
jg 0x463054
push edi
call ebx
add esp, 4
push esi
call fcn.004d9160
add esp, 4
lea eax, [esp + 0x8c]
call fcn.004655c1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46307a
lea esi, [esp + 0x24]
call fcn.00413661
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4624ef
push eax
push 0
jmp 0x4624e2
lea eax, [esp + 0x14]
call fcn.004030da
lea eax, [esp + 0x18]
call fcn.004030da
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4630c1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4630c1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x4631ff
mov dword [esp + 0x50], esi
mov byte [esp + 0xd8], 0x28
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4630f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x463170
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x463163
lea esp, [esp]
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x463135
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x463135
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x46315a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46315a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x463110
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x38]
mov eax, dword [0x51b43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x46319a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x4631a0
push edi
call ebx
add esp, 4
jmp 0x4631a0
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x4631bc
push edi
call ebp
test eax, eax
jg 0x4631bc
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x4631d8
push edi
call ebp
test eax, eax
jg 0x4631d8
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51b43c]
sub edi, 0xc
cmp edi, eax
je 0x4631f4
push edi
call ebp
test eax, eax
jg 0x4631f4
push edi
call ebx
add esp, 4
push esi
call fcn.004d9160
add esp, 4
xor ebx, ebx
lea eax, [esp + 0x8c]
call fcn.004655c1
jmp 0x4624c9
lea eax, [esp + 0x14]
call fcn.004030da
lea eax, [esp + 0x18]
call fcn.004030da
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x463243
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x463243
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x463266
mov edi, esi
call fcn.00404381
push esi
call fcn.004d9160
add esp, 4
lea eax, [esp + 0x8c]
call fcn.004655c1
jmp 0x4624c9
call fcn.004030da
lea eax, [esp + 0x1c]
call fcn.004030da
lea eax, [esp + 0x14]
call fcn.004030da
lea eax, [esp + 0x18]
call fcn.004030da
mov eax, dword [0x51b43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4632b8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4632b8
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4632db
mov edi, esi
call fcn.00404381
push esi
call fcn.004d9160
add esp, 4
lea eax, [esp + 0x8c]
call fcn.004655c1
lea eax, [esp + 0x24]
call fcn.00413515
xor eax, eax
jmp 0x462571
xor eax, eax
jmp 0x462573