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

Disassembly:
push 0xffffffffffffffff
push 0x4c7516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x4e7384]
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 0x457487
cmp word [eax], bx
je 0x457487
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 0x457480
lea esi, [esp + 0x24]
mov dword [esp + 0x28], 0xc0000000
call fcn.0040daee
test eax, eax
jne 0x4565f3
cmp dword [esp + 0x44], ebx
je 0x45656c
call fcn.0040db70
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x456593
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 0x4565b6
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 0x4565cd
lea esi, [esp + 0x24]
call fcn.0040db70
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
cmp esi, ebx
je 0x4565dc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp edi, 0xffffffff
je 0x457480
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4566fb
push 1
push ebp
call fcn.00453f91
mov al, 0x54
push 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], al
mov byte [esp + 0x8d], al
mov eax, dword [ebp + 0x18]
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.0041d6cf
cmp eax, 0x10
je 0x456691
cmp dword [esp + 0x44], ebx
je 0x456662
lea esi, [esp + 0x24]
call fcn.0040db70
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x456679
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 0x457480
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4566fb
lea eax, [ebp + 0x10]
lea edi, [esp + 0x24]
call fcn.00455760
test eax, eax
je 0x456653
mov eax, 0x4eba1c
call fcn.00455760
test eax, eax
je 0x456653
mov eax, 0x4eba20
call fcn.00455760
test eax, eax
je 0x456653
lea edx, [esp + 0x98]
push edx
call fcn.0048d6dc
mov byte [esp + 0xd4], 1
mov eax, dword [ebp + 4]
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ebx
jg 0x456730
lea eax, [esp + 0x98]
call fcn.004528d4
lea eax, [esp + 0x24]
call fcn.0040da24
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.004c2215
add esp, 0xc8
ret 0xc
mov ebp, dword [esp + 0xdc]
lea esp, [esp]
mov eax, dword [esp + 0x5c]
mov ecx, ebp
call fcn.0046cd11
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x50], esi
je 0x45674c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
jne 0x45675d
mov byte [esp + 0xd4], 1
jmp 0x456d62
push esi
lea eax, [esp + 0x68]
call fcn.00404408
mov byte [esp + 0xd4], 8
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x456878
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x45679f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45679f
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 0x456d62
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0xd
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4567cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x3c]
test ebp, ebp
je 0x456843
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x456836
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456808
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456808
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x45682d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45682d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x4567e3
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x34]
mov eax, dword [0x4e9154]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x4569d9
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x4569df
push edi
call ebx
add esp, 4
jmp 0x4569df
lea eax, [esp + 0x64]
lea edi, [esp + 0x24]
call fcn.00455760
test eax, eax
je 0x456d7c
mov eax, dword [esp + 0x68]
test ax, ax
mov dword [esp + 0x10], 0
mov dword [esp + 0x78], eax
je 0x4568aa
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x456a48
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0xa0]
push ecx
mov ebx, esi
call fcn.00458755
test al, al
je 0x456a48
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.0041d6cf
cmp eax, 2
jne 0x456eff
mov al, byte [esp + 0x10]
mov bl, 1
test bl, al
je 0x456915
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x80]
call fcn.0041d6cf
cmp eax, 2
jne 0x45708e
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x456936
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456936
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 0x456d62
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x21
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x456965
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x3c]
test ebp, ebp
je 0x456843
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x456836
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4569a6
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4569a6
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4569cb
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4569cb
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x456981
jmp 0x456836
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4569fb
push edi
call ebp
test eax, eax
jg 0x4569fb
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456a17
push edi
call ebp
test eax, eax
jg 0x456a17
push edi
call ebx
add esp, 4
mov byte [esp + 0xd4], 1
mov edi, dword [esi + 8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456d59
push edi
call ebp
test eax, eax
jg 0x456d59
push edi
call ebx
add esp, 4
jmp 0x456d59
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0048c0a5
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], ebx
je 0x456a65
or dword [esp + 0x10], 2
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [esp + 0x80], eax
jl 0x456a78
or dword [esp + 0x10], 4
push esi
call fcn.00453431
mov edx, dword [esp + 0x10]
or edx, 0x40
mov dword [esp + 0x84], eax
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x2c]
test al, al
mov byte [esp + 0x4f], al
je 0x456aa6
mov eax, edx
or eax, 0x80
mov dword [esp + 0x10], eax
push esi
call fcn.0040e1c3
mov edx, dword [0x4e9150]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x14], edx
cmp dword [0x4eba10], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x70], bx
mov word [esp + 0x72], bx
mov dword [esp + 0x74], ebx
jne 0x456ae1
cmp dword [esi + 0x2c], ebx
je 0x456b64
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.0040e191
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00402e80
lea eax, [esp + 0x7c]
call fcn.004030b6
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov cx, word [esi + 0x1c]
mov word [esp + 0x70], cx
mov dx, word [esi + 0x1e]
mov word [esp + 0x72], dx
mov edi, dword [esi + 0x20]
mov dword [esp + 0x74], edi
cmp dword [ebp - 8], ebx
jne 0x456b4f
cmp eax, ebx
jne 0x456b4f
cmp cx, bx
jne 0x456b4f
cmp dx, bx
jne 0x456b4f
cmp edi, ebx
je 0x456b54
or dword [esp + 0x10], 0x10
cmp word [esp + 0x58], bx
mov ebp, dword [esp + 0x64]
je 0x456b64
or dword [esp + 0x10], 0x20
push 2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041d6cf
cmp eax, 2
jne 0x45721e
test byte [esp + 0x10], 1
je 0x456ba0
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x80]
call fcn.0041d6cf
cmp eax, 2
jne 0x4573a0
test byte [esp + 0x10], 2
je 0x456bbc
lea eax, [esp + 0x18]
lea edi, [esp + 0x24]
call fcn.00455760
test eax, eax
je 0x457415
test byte [esp + 0x10], 4
je 0x456bdf
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x88]
call fcn.0041d6cf
cmp eax, 4
jne 0x457415
test byte [esp + 0x10], 8
je 0x456bff
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x68]
call fcn.0041d6cf
cmp eax, 4
jne 0x457415
test byte [esp + 0x10], 0x10
je 0x456c34
lea eax, [esp + 0x14]
lea edi, [esp + 0x24]
call fcn.00455760
test eax, eax
je 0x457415
push 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x74]
call fcn.0041d6cf
cmp eax, 0xc
jne 0x457415
test byte [esp + 0x10], 0x20
je 0x456cc8
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
call fcn.0041d6cf
cmp eax, 2
jne 0x457415
cmp word [esp + 0x58], bx
jle 0x456cc8
nop
mov eax, dword [0x4e9150]
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.0040e1e6
lea eax, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.00455720
test eax, eax
lea eax, [esp + 0x54]
je 0x457407
call fcn.00455760
test eax, eax
lea eax, [esp + 0x54]
je 0x457407
call fcn.004030b6
lea eax, [esp + 0x1c]
call fcn.004030b6
movsx eax, word [esp + 0x58]
inc ebx
cmp ebx, eax
jl 0x456c60
test byte [esp + 0x10], 0x40
je 0x456ceb
push 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0041d6cf
cmp eax, 4
jne 0x457415
mov al, byte [esp + 0x10]
test al, al
jns 0x456d0c
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x57]
call fcn.0041d6cf
cmp eax, 1
jne 0x457415
lea eax, [esp + 0x14]
call fcn.004030b6
lea eax, [esp + 0x18]
call fcn.004030b6
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x456d3f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456d3f
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 0x456d62
mov edi, esi
call fcn.0040448f
push esi
call fcn.004c1ae4
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x456722
jmp 0x4566e1
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x456d9d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456d9d
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 0x456ece
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x12
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x456dcd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x3c]
test ebp, ebp
je 0x456e41
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x456e34
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456e06
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456e06
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456e2b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456e2b
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x456de1
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x34]
mov eax, dword [0x4e9154]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x456e6b
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x456e71
push edi
call ebx
add esp, 4
jmp 0x456e71
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456e8d
push edi
call ebp
test eax, eax
jg 0x456e8d
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456ea9
push edi
call ebp
test eax, eax
jg 0x456ea9
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456ec5
push edi
call ebp
test eax, eax
jg 0x456ec5
push edi
call ebx
add esp, 4
push esi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x98]
call fcn.004528d4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x456eeb
lea esi, [esp + 0x24]
call fcn.0040db70
mov eax, dword [esp + 0x38]
test eax, eax
je 0x456679
push eax
push 0
jmp 0x45666c
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x456f20
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456f20
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 0x45705d
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x17
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x456f50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x3c]
test ebp, ebp
je 0x456fd0
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x456fc3
jmp 0x456f70
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456f95
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456f95
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x456fba
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456fba
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x456f70
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x34]
mov eax, dword [0x4e9154]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x456ffa
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x457000
push edi
call ebx
add esp, 4
jmp 0x457000
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x45701c
push edi
call ebp
test eax, eax
jg 0x45701c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x457038
push edi
call ebp
test eax, eax
jg 0x457038
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x457054
push edi
call ebp
test eax, eax
jg 0x457054
push edi
call ebx
add esp, 4
push esi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x98]
call fcn.004528d4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45707a
lea esi, [esp + 0x24]
call fcn.0040db70
mov eax, dword [esp + 0x38]
test eax, eax
je 0x456679
push eax
push 0
jmp 0x45666c
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4570af
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4570af
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 0x4571ed
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x1c
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4570de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x3c]
test ebp, ebp
je 0x457160
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x457153
jmp 0x457100
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x457125
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457125
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x45714a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45714a
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x457100
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x34]
mov eax, dword [0x4e9154]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x45718a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x457190
push edi
call ebx
add esp, 4
jmp 0x457190
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4571ac
push edi
call ebp
test eax, eax
jg 0x4571ac
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4571c8
push edi
call ebp
test eax, eax
jg 0x4571c8
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4571e4
push edi
call ebp
test eax, eax
jg 0x4571e4
push edi
call ebx
add esp, 4
push esi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x98]
call fcn.004528d4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45720a
lea esi, [esp + 0x24]
call fcn.0040db70
mov eax, dword [esp + 0x38]
test eax, eax
je 0x456679
push eax
push 0
jmp 0x45666c
lea eax, [esp + 0x14]
call fcn.004030b6
lea eax, [esp + 0x18]
call fcn.004030b6
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x457251
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457251
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 0x45738f
mov dword [esp + 0x50], esi
mov byte [esp + 0xd4], 0x28
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x457281
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [esi + 0x3c]
test ebp, ebp
je 0x457300
mov eax, dword [esi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x4572f3
lea esp, [esp]
mov edi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4572c5
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4572c5
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x4572ea
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4572ea
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x4572a0
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esi + 0x34]
mov eax, dword [0x4e9154]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, 0xc
cmp edi, eax
je 0x45732a
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x457330
push edi
call ebx
add esp, 4
jmp 0x457330
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esi + 0x10]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x45734c
push edi
call ebp
test eax, eax
jg 0x45734c
push edi
call ebx
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x457368
push edi
call ebp
test eax, eax
jg 0x457368
push edi
call ebx
add esp, 4
mov edi, dword [esi + 8]
mov eax, dword [0x4e9154]
sub edi, 0xc
cmp edi, eax
je 0x457384
push edi
call ebp
test eax, eax
jg 0x457384
push edi
call ebx
add esp, 4
push esi
call fcn.004c1ae4
add esp, 4
xor ebx, ebx
lea eax, [esp + 0x98]
call fcn.004528d4
jmp 0x456653
lea eax, [esp + 0x14]
call fcn.004030b6
lea eax, [esp + 0x18]
call fcn.004030b6
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x4573d3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4573d3
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 0x4573f6
mov edi, esi
call fcn.0040448f
push esi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x98]
call fcn.004528d4
jmp 0x456653
call fcn.004030b6
lea eax, [esp + 0x1c]
call fcn.004030b6
lea eax, [esp + 0x14]
call fcn.004030b6
lea eax, [esp + 0x18]
call fcn.004030b6
mov eax, dword [0x4e9154]
lea edi, [ebp - 0xc]
cmp edi, eax
je 0x457448
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457448
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 0x45746b
mov edi, esi
call fcn.0040448f
push esi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x98]
call fcn.004528d4
lea eax, [esp + 0x24]
call fcn.0040da24
xor eax, eax
jmp 0x4566fb
xor eax, eax
jmp 0x4566fd