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

Disassembly:
push 0xffffffffffffffff
push 0x4cd536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x4ed384]
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 0x45a457
cmp word [eax], bx
je 0x45a457
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 0x45a450
lea esi, [esp + 0x24]
mov dword [esp + 0x28], 0xc0000000
call fcn.0040d9ff
test eax, eax
jne 0x4595c3
cmp dword [esp + 0x44], ebx
je 0x45953c
call fcn.0040da81
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x459563
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 0x459586
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 0x45959d
lea esi, [esp + 0x24]
call fcn.0040da81
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
cmp esi, ebx
je 0x4595ac
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp edi, 0xffffffff
je 0x45a450
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4596cb
push 1
push ebp
call fcn.00456f61
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.0041d408
cmp eax, 0x10
je 0x459661
cmp dword [esp + 0x44], ebx
je 0x459632
lea esi, [esp + 0x24]
call fcn.0040da81
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x459649
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 0x45a450
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4596cb
lea eax, [ebp + 0x10]
lea edi, [esp + 0x24]
call fcn.00458730
test eax, eax
je 0x459623
mov eax, 0x4f32bc
call fcn.00458730
test eax, eax
je 0x459623
mov eax, 0x4f32c0
call fcn.00458730
test eax, eax
je 0x459623
lea edx, [esp + 0x98]
push edx
call fcn.00456970
mov byte [esp + 0xd4], 1
mov eax, dword [ebp + 4]
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ebx
jg 0x459700
lea eax, [esp + 0x98]
call fcn.0045bf12
lea eax, [esp + 0x24]
call fcn.0040d935
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.004c7b01
add esp, 0xc8
ret 0xc
mov ebp, dword [esp + 0xdc]
lea esp, [esp]
mov eax, dword [esp + 0x5c]
mov ecx, ebp
call fcn.004553ae
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x50], esi
je 0x45971c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
jne 0x45972d
mov byte [esp + 0xd4], 1
jmp 0x459d32
push esi
lea eax, [esp + 0x68]
call fcn.004040fe
mov byte [esp + 0xd4], 8
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x459848
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x45976f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45976f
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 0x459d32
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0xd
mov eax, dword [esi + 0x50]
test eax, eax
je 0x45979f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x459813
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x459806
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x4597d8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4597d8
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x4597fd
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4597fd
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x4597b3
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 [0x4f0984]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x4599a9
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x4599af
push edi
call ebx
add esp, 4
jmp 0x4599af
lea eax, [esp + 0x64]
lea edi, [esp + 0x24]
call fcn.00458730
test eax, eax
je 0x459d4c
mov eax, dword [esp + 0x68]
test ax, ax
mov dword [esp + 0x10], 0
mov dword [esp + 0x78], eax
je 0x45987a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x459a18
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0xa0]
push ecx
mov ebx, esi
call fcn.0045b7ef
test al, al
je 0x459a18
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.0041d408
cmp eax, 2
jne 0x459ecf
mov al, byte [esp + 0x10]
mov bl, 1
test bl, al
je 0x4598e5
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x80]
call fcn.0041d408
cmp eax, 2
jne 0x45a05e
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x459906
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459906
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 0x459d32
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x21
mov eax, dword [esi + 0x50]
test eax, eax
je 0x459935
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x459813
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x459806
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459976
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459976
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45999b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45999b
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x459951
jmp 0x459806
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x4599cb
push edi
call ebp
test eax, eax
jg 0x4599cb
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x4599e7
push edi
call ebp
test eax, eax
jg 0x4599e7
push edi
call ebx
add esp, 4
mov byte [esp + 0xd4], 1
mov edi, dword [esi + 8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459d29
push edi
call ebp
test eax, eax
jg 0x459d29
push edi
call ebx
add esp, 4
jmp 0x459d29
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0048ecca
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], ebx
je 0x459a35
or dword [esp + 0x10], 2
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esp + 0x80], eax
jl 0x459a48
or dword [esp + 0x10], 4
push esi
call fcn.004563b7
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 0x459a76
mov eax, edx
or eax, 0x80
mov dword [esp + 0x10], eax
push esi
call fcn.0040e0a2
mov edx, dword [0x4f0980]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x14], edx
cmp dword [0x4f32b0], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x70], bx
mov word [esp + 0x72], bx
mov dword [esp + 0x74], ebx
jne 0x459ab1
cmp dword [esi + 0x30], ebx
je 0x459b34
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.0040e070
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00402f73
lea eax, [esp + 0x7c]
call fcn.004031a9
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 0x459b1f
cmp eax, ebx
jne 0x459b1f
cmp cx, bx
jne 0x459b1f
cmp dx, bx
jne 0x459b1f
cmp edi, ebx
je 0x459b24
or dword [esp + 0x10], 0x10
cmp word [esp + 0x58], bx
mov ebp, dword [esp + 0x64]
je 0x459b34
or dword [esp + 0x10], 0x20
push 2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041d408
cmp eax, 2
jne 0x45a1ee
test byte [esp + 0x10], 1
je 0x459b70
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x80]
call fcn.0041d408
cmp eax, 2
jne 0x45a370
test byte [esp + 0x10], 2
je 0x459b8c
lea eax, [esp + 0x18]
lea edi, [esp + 0x24]
call fcn.00458730
test eax, eax
je 0x45a3e5
test byte [esp + 0x10], 4
je 0x459baf
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x88]
call fcn.0041d408
cmp eax, 4
jne 0x45a3e5
test byte [esp + 0x10], 8
je 0x459bcf
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x68]
call fcn.0041d408
cmp eax, 4
jne 0x45a3e5
test byte [esp + 0x10], 0x10
je 0x459c04
lea eax, [esp + 0x14]
lea edi, [esp + 0x24]
call fcn.00458730
test eax, eax
je 0x45a3e5
push 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x74]
call fcn.0041d408
cmp eax, 0xc
jne 0x45a3e5
test byte [esp + 0x10], 0x20
je 0x459c98
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
call fcn.0041d408
cmp eax, 2
jne 0x45a3e5
cmp word [esp + 0x58], bx
jle 0x459c98
nop
mov eax, dword [0x4f0980]
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.0040e0c5
lea eax, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.004586f0
test eax, eax
lea eax, [esp + 0x54]
je 0x45a3d7
call fcn.00458730
test eax, eax
lea eax, [esp + 0x54]
je 0x45a3d7
call fcn.004031a9
lea eax, [esp + 0x1c]
call fcn.004031a9
movsx eax, word [esp + 0x58]
inc ebx
cmp ebx, eax
jl 0x459c30
test byte [esp + 0x10], 0x40
je 0x459cbb
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0041d408
cmp eax, 4
jne 0x45a3e5
mov al, byte [esp + 0x10]
test al, al
jns 0x459cdc
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x57]
call fcn.0041d408
cmp eax, 1
jne 0x45a3e5
lea eax, [esp + 0x14]
call fcn.004031a9
lea eax, [esp + 0x18]
call fcn.004031a9
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x459d0f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459d0f
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 0x459d32
mov edi, esi
call fcn.00404185
push esi
call fcn.004c73c6
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x4596f2
jmp 0x4596b1
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x459d6d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459d6d
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 0x459e9e
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x12
mov eax, dword [esi + 0x50]
test eax, eax
je 0x459d9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x459e11
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x459e04
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459dd6
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459dd6
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459dfb
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459dfb
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x459db1
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 [0x4f0984]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x459e3b
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x459e41
push edi
call ebx
add esp, 4
jmp 0x459e41
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459e5d
push edi
call ebp
test eax, eax
jg 0x459e5d
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459e79
push edi
call ebp
test eax, eax
jg 0x459e79
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459e95
push edi
call ebp
test eax, eax
jg 0x459e95
push edi
call ebx
add esp, 4
push esi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x98]
call fcn.0045bf12
mov eax, dword [esp + 0x44]
test eax, eax
je 0x459ebb
lea esi, [esp + 0x24]
call fcn.0040da81
mov eax, dword [esp + 0x38]
test eax, eax
je 0x459649
push eax
push 0
jmp 0x45963c
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x459ef0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459ef0
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 0x45a02d
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x17
mov eax, dword [esi + 0x50]
test eax, eax
je 0x459f20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x459fa0
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x459f93
jmp 0x459f40
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459f65
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459f65
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459f8a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459f8a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x459f40
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 [0x4f0984]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x459fca
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x459fd0
push edi
call ebx
add esp, 4
jmp 0x459fd0
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x459fec
push edi
call ebp
test eax, eax
jg 0x459fec
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a008
push edi
call ebp
test eax, eax
jg 0x45a008
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a024
push edi
call ebp
test eax, eax
jg 0x45a024
push edi
call ebx
add esp, 4
push esi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x98]
call fcn.0045bf12
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45a04a
lea esi, [esp + 0x24]
call fcn.0040da81
mov eax, dword [esp + 0x38]
test eax, eax
je 0x459649
push eax
push 0
jmp 0x45963c
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x45a07f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a07f
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 0x45a1bd
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x1c
mov eax, dword [esi + 0x50]
test eax, eax
je 0x45a0ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x45a130
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x45a123
jmp 0x45a0d0
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a0f5
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a0f5
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a11a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a11a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x45a0d0
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 [0x4f0984]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x45a15a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x45a160
push edi
call ebx
add esp, 4
jmp 0x45a160
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a17c
push edi
call ebp
test eax, eax
jg 0x45a17c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a198
push edi
call ebp
test eax, eax
jg 0x45a198
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a1b4
push edi
call ebp
test eax, eax
jg 0x45a1b4
push edi
call ebx
add esp, 4
push esi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x98]
call fcn.0045bf12
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45a1da
lea esi, [esp + 0x24]
call fcn.0040da81
mov eax, dword [esp + 0x38]
test eax, eax
je 0x459649
push eax
push 0
jmp 0x45963c
lea eax, [esp + 0x14]
call fcn.004031a9
lea eax, [esp + 0x18]
call fcn.004031a9
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x45a221
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a221
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 0x45a35f
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x28
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x45a251
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x45a2d0
mov eax, dword [esi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x45a2c3
lea esp, [esp]
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a295
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a295
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a2ba
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a2ba
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x45a270
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 [0x4f0984]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x45a2fa
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x45a300
push edi
call ebx
add esp, 4
jmp 0x45a300
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a31c
push edi
call ebp
test eax, eax
jg 0x45a31c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a338
push edi
call ebp
test eax, eax
jg 0x45a338
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4f0984]
sub edi, 0xc
cmp edi, eax
je 0x45a354
push edi
call ebp
test eax, eax
jg 0x45a354
push edi
call ebx
add esp, 4
push esi
call fcn.004c73c6
add esp, 4
xor ebx, ebx
lea eax, [esp + 0x98]
call fcn.0045bf12
jmp 0x459623
lea eax, [esp + 0x14]
call fcn.004031a9
lea eax, [esp + 0x18]
call fcn.004031a9
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x45a3a3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a3a3
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 0x45a3c6
mov edi, esi
call fcn.00404185
push esi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x98]
call fcn.0045bf12
jmp 0x459623
call fcn.004031a9
lea eax, [esp + 0x1c]
call fcn.004031a9
lea eax, [esp + 0x14]
call fcn.004031a9
lea eax, [esp + 0x18]
call fcn.004031a9
mov eax, dword [0x4f0984]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x45a418
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45a418
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 0x45a43b
mov edi, esi
call fcn.00404185
push esi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x98]
call fcn.0045bf12
lea eax, [esp + 0x24]
call fcn.0040d935
xor eax, eax
jmp 0x4596cb
xor eax, eax
jmp 0x4596cd