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

Disassembly:
push 0xffffffffffffffff
push 0x4f2f76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x516ad4]
push ebx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xd4]
xor ebx, ebx
cmp eax, ebx
push ebp
mov ebp, dword [esp + 0xd4]
je 0x4632e7
cmp word [eax], bx
je 0x4632e7
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 + 0xf0], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4632e0
lea esi, [esp + 0x24]
mov dword [esp + 0x28], 0xc0000000
call fcn.00413c16
test eax, eax
jne 0x462453
cmp dword [esp + 0x44], ebx
je 0x4623cc
call fcn.00413c98
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x4623f3
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 0x462416
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 0x46242d
lea esi, [esp + 0x24]
call fcn.00413c98
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
cmp esi, ebx
je 0x46243c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp edi, 0xffffffff
je 0x4632e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46255b
push 1
push ebp
call fcn.004608bf
mov al, 0x54
push 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], al
mov byte [esp + 0x8d], al
mov eax, dword [ebp + 0x1c]
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0x92], 0x42
mov byte [esp + 0x93], 0x4c
mov dword [esp + 0x94], 4
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], eax
call fcn.004245ef
cmp eax, 0x10
je 0x4624f1
cmp dword [esp + 0x44], ebx
je 0x4624c2
lea esi, [esp + 0x24]
call fcn.00413c98
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4624d9
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 0x4632e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46255b
lea eax, [ebp + 0x10]
lea edi, [esp + 0x24]
call fcn.00462070
test eax, eax
je 0x4624b3
mov eax, 0x521b94
call fcn.00462070
test eax, eax
je 0x4624b3
mov eax, 0x521b98
call fcn.00462070
test eax, eax
je 0x4624b3
lea edx, [esp + 0x98]
push edx
call fcn.0049c09b
mov byte [esp + 0xd4], 1
mov eax, dword [ebp + 4]
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ebx
jg 0x462590
lea eax, [esp + 0x98]
call fcn.0040dde5
lea eax, [esp + 0x24]
call fcn.00413b4c
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xbc]
pop ebx
call fcn.004eae3c
add esp, 0xc8
ret 0xc
mov ebp, dword [esp + 0xdc]
lea esp, [esp]
mov eax, dword [esp + 0x5c]
mov ecx, ebp
call fcn.0045d964
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x50], esi
je 0x4625ac
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
jne 0x4625bd
mov byte [esp + 0xd4], 1
jmp 0x462bc2
push esi
lea eax, [esp + 0x68]
call fcn.00404868
mov byte [esp + 0xd4], 8
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4626d8
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4625ff
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4625ff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462bc2
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0xd
mov eax, dword [esi + 0x50]
test eax, eax
je 0x46262f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x4626a3
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x462696
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462668
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462668
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x46268d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46268d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x462643
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 [0x51a43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462839
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x46283f
push edi
call ebx
add esp, 4
jmp 0x46283f
lea eax, [esp + 0x64]
lea edi, [esp + 0x24]
call fcn.00462070
test eax, eax
je 0x462bdc
mov eax, dword [esp + 0x68]
test ax, ax
mov dword [esp + 0x10], 0
mov dword [esp + 0x78], eax
je 0x46270a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x4628a8
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0xa0]
push ecx
mov ebx, esi
call fcn.00464cc3
test al, al
je 0x4628a8
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.004245ef
cmp eax, 2
jne 0x462d5f
mov al, byte [esp + 0x10]
mov bl, 1
test bl, al
je 0x462775
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x80]
call fcn.004245ef
cmp eax, 2
jne 0x462eee
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462796
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462796
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462bc2
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x21
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4627c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x4626a3
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x462696
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462806
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462806
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x46282b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46282b
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x4627e1
jmp 0x462696
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x46285b
push edi
call ebp
test eax, eax
jg 0x46285b
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462877
push edi
call ebp
test eax, eax
jg 0x462877
push edi
call ebx
add esp, 4
mov byte [esp + 0xd4], 1
mov edi, dword [esi + 8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462bb9
push edi
call ebp
test eax, eax
jg 0x462bb9
push edi
call ebx
add esp, 4
jmp 0x462bb9
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0049ab28
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], ebx
je 0x4628c5
or dword [esp + 0x10], 2
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esp + 0x80], eax
jl 0x4628d8
or dword [esp + 0x10], 4
push esi
call fcn.0045e6df
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 0x462906
mov eax, edx
or eax, 0x80
mov dword [esp + 0x10], eax
push esi
call fcn.004142b9
mov edx, dword [0x51a438]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x14], edx
cmp dword [0x521b88], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x70], bx
mov word [esp + 0x72], bx
mov dword [esp + 0x74], ebx
jne 0x462941
cmp dword [esi + 0x30], ebx
je 0x4629c4
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
or ecx, 8
push esi
lea eax, [esp + 0x80]
mov dword [esp + 0x14], ecx
call fcn.00414287
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00403223
lea eax, [esp + 0x7c]
call fcn.0040346f
mov eax, dword [esi + 0x1c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov cx, word [esi + 0x14]
mov word [esp + 0x70], cx
mov dx, word [esi + 0x16]
mov word [esp + 0x72], dx
mov edi, dword [esi + 0x20]
mov dword [esp + 0x74], edi
cmp dword [ebp - 8], ebx
jne 0x4629af
cmp eax, ebx
jne 0x4629af
cmp cx, bx
jne 0x4629af
cmp dx, bx
jne 0x4629af
cmp edi, ebx
je 0x4629b4
or dword [esp + 0x10], 0x10
cmp word [esp + 0x58], bx
mov ebp, dword [esp + 0x64]
je 0x4629c4
or dword [esp + 0x10], 0x20
push 2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.004245ef
cmp eax, 2
jne 0x46307e
test byte [esp + 0x10], 1
je 0x462a00
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x80]
call fcn.004245ef
cmp eax, 2
jne 0x463200
test byte [esp + 0x10], 2
je 0x462a1c
lea eax, [esp + 0x18]
lea edi, [esp + 0x24]
call fcn.00462070
test eax, eax
je 0x463275
test byte [esp + 0x10], 4
je 0x462a3f
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x88]
call fcn.004245ef
cmp eax, 4
jne 0x463275
test byte [esp + 0x10], 8
je 0x462a5f
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x68]
call fcn.004245ef
cmp eax, 4
jne 0x463275
test byte [esp + 0x10], 0x10
je 0x462a94
lea eax, [esp + 0x14]
lea edi, [esp + 0x24]
call fcn.00462070
test eax, eax
je 0x463275
push 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x74]
call fcn.004245ef
cmp eax, 0xc
jne 0x463275
test byte [esp + 0x10], 0x20
je 0x462b28
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
call fcn.004245ef
cmp eax, 2
jne 0x463275
cmp word [esp + 0x58], bx
jle 0x462b28
nop
mov eax, dword [0x51a438]
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 + 0xe4], 0x2a
call fcn.004142dc
lea eax, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.00462030
test eax, eax
lea eax, [esp + 0x54]
je 0x463267
call fcn.00462070
test eax, eax
lea eax, [esp + 0x54]
je 0x463267
call fcn.0040346f
lea eax, [esp + 0x1c]
call fcn.0040346f
movsx eax, word [esp + 0x58]
inc ebx
cmp ebx, eax
jl 0x462ac0
test byte [esp + 0x10], 0x40
je 0x462b4b
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x8c]
call fcn.004245ef
cmp eax, 4
jne 0x463275
mov al, byte [esp + 0x10]
test al, al
jns 0x462b6c
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x57]
call fcn.004245ef
cmp eax, 1
jne 0x463275
lea eax, [esp + 0x14]
call fcn.0040346f
lea eax, [esp + 0x18]
call fcn.0040346f
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462b9f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462b9f
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462bc2
mov edi, esi
call fcn.004048ef
push esi
call fcn.004d8466
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x462582
jmp 0x462541
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462bfd
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462bfd
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462d2e
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x12
mov eax, dword [esi + 0x50]
test eax, eax
je 0x462c2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x462ca1
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x462c94
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462c66
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462c66
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462c8b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462c8b
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x462c41
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 [0x51a43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462ccb
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x462cd1
push edi
call ebx
add esp, 4
jmp 0x462cd1
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462ced
push edi
call ebp
test eax, eax
jg 0x462ced
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462d09
push edi
call ebp
test eax, eax
jg 0x462d09
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462d25
push edi
call ebp
test eax, eax
jg 0x462d25
push edi
call ebx
add esp, 4
push esi
call fcn.004d8466
add esp, 4
lea eax, [esp + 0x98]
call fcn.0040dde5
mov eax, dword [esp + 0x44]
test eax, eax
je 0x462d4b
lea esi, [esp + 0x24]
call fcn.00413c98
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4624d9
push eax
push 0
jmp 0x4624cc
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462d80
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462d80
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x462ebd
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x17
mov eax, dword [esi + 0x50]
test eax, eax
je 0x462db0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x462e30
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x462e23
jmp 0x462dd0
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462df5
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462df5
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462e1a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462e1a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x462dd0
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 [0x51a43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462e5a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x462e60
push edi
call ebx
add esp, 4
jmp 0x462e60
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462e7c
push edi
call ebp
test eax, eax
jg 0x462e7c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462e98
push edi
call ebp
test eax, eax
jg 0x462e98
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462eb4
push edi
call ebp
test eax, eax
jg 0x462eb4
push edi
call ebx
add esp, 4
push esi
call fcn.004d8466
add esp, 4
lea eax, [esp + 0x98]
call fcn.0040dde5
mov eax, dword [esp + 0x44]
test eax, eax
je 0x462eda
lea esi, [esp + 0x24]
call fcn.00413c98
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4624d9
push eax
push 0
jmp 0x4624cc
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x462f0f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462f0f
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x46304d
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x1c
mov eax, dword [esi + 0x50]
test eax, eax
je 0x462f3e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x462fc0
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x462fb3
jmp 0x462f60
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462f85
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462f85
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x462faa
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462faa
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x462f60
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 [0x51a43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x462fea
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x462ff0
push edi
call ebx
add esp, 4
jmp 0x462ff0
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x46300c
push edi
call ebp
test eax, eax
jg 0x46300c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x463028
push edi
call ebp
test eax, eax
jg 0x463028
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x463044
push edi
call ebp
test eax, eax
jg 0x463044
push edi
call ebx
add esp, 4
push esi
call fcn.004d8466
add esp, 4
lea eax, [esp + 0x98]
call fcn.0040dde5
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46306a
lea esi, [esp + 0x24]
call fcn.00413c98
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4624d9
push eax
push 0
jmp 0x4624cc
lea eax, [esp + 0x14]
call fcn.0040346f
lea eax, [esp + 0x18]
call fcn.0040346f
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4630b1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4630b1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x4631ef
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x28
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4630e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x463160
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x463153
lea esp, [esp]
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x463125
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x463125
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x46314a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46314a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x463100
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 [0x51a43c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x46318a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x463190
push edi
call ebx
add esp, 4
jmp 0x463190
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x4631ac
push edi
call ebp
test eax, eax
jg 0x4631ac
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x4631c8
push edi
call ebp
test eax, eax
jg 0x4631c8
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x51a43c]
sub edi, 0xc
cmp edi, eax
je 0x4631e4
push edi
call ebp
test eax, eax
jg 0x4631e4
push edi
call ebx
add esp, 4
push esi
call fcn.004d8466
add esp, 4
xor ebx, ebx
lea eax, [esp + 0x98]
call fcn.0040dde5
jmp 0x4624b3
lea eax, [esp + 0x14]
call fcn.0040346f
lea eax, [esp + 0x18]
call fcn.0040346f
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x463233
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x463233
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x463256
mov edi, esi
call fcn.004048ef
push esi
call fcn.004d8466
add esp, 4
lea eax, [esp + 0x98]
call fcn.0040dde5
jmp 0x4624b3
call fcn.0040346f
lea eax, [esp + 0x1c]
call fcn.0040346f
lea eax, [esp + 0x14]
call fcn.0040346f
lea eax, [esp + 0x18]
call fcn.0040346f
mov eax, dword [0x51a43c]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4632a8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4632a8
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
mov byte [esp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4632cb
mov edi, esi
call fcn.004048ef
push esi
call fcn.004d8466
add esp, 4
lea eax, [esp + 0x98]
call fcn.0040dde5
lea eax, [esp + 0x24]
call fcn.00413b4c
xor eax, eax
jmp 0x46255b
xor eax, eax
jmp 0x46255d