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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7657
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x80
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x456491
cmp word [eax], bp
je 0x456491
push ebx
push esi
push edi
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0x1000
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
push 0x80
push 3
push 1
push SysReAllocString
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xac], ebp
call fcn.0040dc07
test eax, eax
jne 0x45584b
mov eax, dword [esp + 0x84]
cmp eax, ebp
je 0x455a73
push eax
jmp 0x455a58
mov ebx, dword [esp + 0x84]
cmp ebx, ebp
je 0x45585f
mov eax, dword [esp + 0x80]
jmp 0x455868
lea esi, [esp + 0x58]
call fcn.0040da56
cmp ebx, ebp
lea ecx, [ebx + eax]
mov dword [esp + 0x24], ecx
je 0x455a73
cmp eax, 0x10
jb 0x455a57
cmp dword [ebx], 0x4c425454
jne 0x455a57
mov ecx, dword [ebx + 4]
cmp ecx, 4
jg 0x455a57
mov eax, dword [ebx + 8]
cmp eax, ebp
je 0x4558af
cmp eax, 0xfde9
je 0x4558af
cmp eax, 0xffffffff
jne 0x455a57
xor edx, edx
cmp ecx, 2
setge dl
lea edx, [edx*4 + 0xc]
add edx, ebx
cmp ecx, 2
mov dword [esp + 0x14], edx
jl 0x4558d6
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x18], eax
mov edx, dword [0x4e9150]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x98], 1
mov eax, dword [ebx + 8]
push eax
lea ecx, [esp + 0x30]
push ecx
lea esi, [esp + 0x1c]
call fcn.00455650
mov esi, eax
mov eax, dword [esp + 0xa8]
add esp, 8
add eax, 0x10
lea edi, [esp + 0x2c]
call fcn.00402e80
cmp esi, ebp
je 0x455a4e
cmp dword [esp + 0xa8], ebp
je 0x4559e3
mov eax, edi
call fcn.004030b6
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esp + 0x78], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x80], ebp
je 0x45595d
lea esi, [esp + 0x58]
call fcn.0040db70
mov esi, dword [esp + 0x6c]
cmp esi, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x455984
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
xor esi, esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov edi, dword [esp + 0x58]
cmp edi, 0xffffffff
je 0x4559a7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
cmp dword [esp + 0x78], ebp
je 0x4559be
lea esi, [esp + 0x58]
call fcn.0040db70
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
cmp esi, ebp
je 0x4559cd
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp edi, 0xffffffff
je 0x4559d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x455b00
mov eax, dword [0x4e9150]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x24]
mov byte [esp + 0x98], 3
cmp dword [ebx + 4], 3
jle 0x455b1b
mov edx, dword [ebx + 8]
push edx
lea eax, [esp + 0x3c]
push eax
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.00455650
add esp, 8
test eax, eax
je 0x455a3c
mov ecx, dword [ebx + 8]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, edi
call fcn.00455650
add esp, 8
cmp eax, ebp
jne 0x455b1b
lea eax, [esp + 0x34]
call fcn.004030b6
lea eax, [esp + 0x38]
call fcn.004030b6
lea eax, [esp + 0x2c]
call fcn.004030b6
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
cmp dword [esp + 0x78], ebp
je 0x455a82
lea esi, [esp + 0x58]
call fcn.0040db70
mov esi, dword [esp + 0x6c]
cmp esi, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x455aa9
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
xor esi, esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebp
mov edi, dword [esp + 0x58]
cmp edi, 0xffffffff
je 0x455acc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x58], edi
cmp dword [esp + 0x78], ebp
je 0x455ae3
lea esi, [esp + 0x58]
call fcn.0040db70
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
cmp esi, ebp
je 0x455af2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp edi, 0xffffffff
je 0x455afe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret 0xc
mov eax, dword [0x4eba1c]
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push eax
push ecx
call esi
add esp, 8
test eax, eax
jne 0x455b4a
mov edx, dword [0x4eba20]
mov eax, dword [esp + 0x34]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x455b4f
mov eax, 1
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x24], eax
cmp dword [esp + 0x14], edi
jae 0x45643d
mov edx, dword [0x4e9150]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 8]
mov edi, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.00455650
add esp, 8
test eax, eax
je 0x45642c
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebp
je 0x45642c
lea ecx, [esp + 0x28]
push ecx
mov esi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebp
call fcn.00455570
add esp, 4
test eax, eax
je 0x45642c
mov edx, dword [0x4e9150]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x28]
test bl, 1
mov dword [esp + 0x3c], 0xfffffffe
je 0x455bfb
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00455570
add esp, 4
test eax, eax
je 0x456423
and ebx, 2
je 0x455c26
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 8]
push edx
lea eax, [esp + 0x1c]
push eax
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.00455650
add esp, 8
test eax, eax
je 0x456423
test byte [esp + 0x28], 4
je 0x455c48
lea ecx, [esp + 0x3c]
push ecx
mov esi, edi
lea ecx, [esp + 0x18]
call fcn.00455590
add esp, 4
test eax, eax
je 0x456423
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x20]
call fcn.00402de7
mov byte [esp + 0x98], 6
mov edx, dword [esp + 0x3c]
movsx eax, word [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
push 0x4eae78
mov ecx, esi
call fcn.00453572
mov byte [esp + 0x98], 7
mov edi, dword [esp + 0x48]
cmp edi, ebp
je 0x45641a
cmp bx, bp
je 0x455d81
mov eax, dword [edi + 8]
cmp eax, dword [esp + 0x18]
je 0x455d81
lea ebx, [eax - 0xc]
cmp dword [ebx], ebp
mov eax, dword [0x4e9154]
jge 0x455cb3
cmp ebx, eax
jne 0x455cc5
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0xc]
add esi, 0xfffffff4
cmp ecx, ebp
jge 0x455d51
cmp dword [ebx], 1
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 8]
jg 0x455cd6
cmp esi, dword [ebx + 8]
jle 0x455d2d
cmp ebx, eax
je 0x455cfc
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x455cef
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [0x4e9150]
mov dword [edi + 8], eax
mov eax, dword [0x4e9154]
cmp esi, ebp
je 0x455d23
lea eax, [esi + esi + 0xe]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebp
je 0x455d81
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], bp
cmp eax, ebp
je 0x455d81
add eax, 0xc
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 8]
lea ebx, [esi + esi]
push ebx
push ecx
push edx
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 8]
mov dword [eax - 8], esi
mov ecx, dword [edi + 8]
add esp, 0xc
mov word [ebx + ecx], bp
jmp 0x455d81
cmp ebx, eax
je 0x455d73
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x455d6a
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [0x4e9150]
mov dword [edi + 8], edx
mov eax, dword [esp + 0x18]
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test byte [esp + 0x28], 8
mov ebx, dword [esp + 0x24]
je 0x455db2
lea ecx, [esp + 0x3c]
push ecx
mov esi, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00455590
add esp, 4
test eax, eax
je 0x456026
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x24], edx
test byte [esp + 0x28], 0x10
je 0x455e4f
mov eax, dword [0x4e9150]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 8]
push edx
lea eax, [esp + 0x34]
push eax
mov edx, ebx
lea esi, [esp + 0x1c]
call fcn.00455650
add esp, 8
test eax, eax
je 0x456172
mov ecx, dword [esp + 0x30]
push ecx
push edi
call fcn.004533c0
lea edx, [esp + 0x4c]
push edx
mov edx, ebx
mov dword [esp + 0x50], ebp
mov word [esp + 0x54], bp
mov word [esp + 0x56], bp
mov dword [esp + 0x58], ebp
call fcn.004555b0
add esp, 4
test eax, eax
je 0x456286
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x52]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov dword [edi + 0x20], eax
lea eax, [esp + 0x30]
mov dword [edi + 0x18], esi
mov word [edi + 0x1c], dx
mov word [edi + 0x1e], cx
mov byte [esp + 0x98], 7
call fcn.004030b6
test byte [esp + 0x28], 0x20
je 0x455f33
lea eax, [esp + 0x3c]
push eax
mov esi, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00455570
add esp, 4
test eax, eax
je 0x456365
movsx eax, word [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x40], ebp
jle 0x455f2b
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [0x4e9150]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x3c]
push ecx
mov edx, ebp
lea ebx, [esp + 0x18]
mov byte [esp + 0x9c], 0x23
call fcn.004555e0
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edx, ebp
mov esi, ebx
call fcn.00455650
mov edx, dword [esp + 0x48]
mov eax, dword [edx - 8]
add esp, 0xc
test eax, eax
je 0x455f03
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x455f03
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push edi
call fcn.0040e284
inc esi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x30]
call fcn.004030b6
lea eax, [esp + 0x3c]
mov byte [esp + 0x98], 7
call fcn.004030b6
dec dword [esp + 0x44]
jne 0x455e92
mov ebx, dword [esp + 0x24]
push edi
call fcn.004533e8
xor ebp, ebp
test byte [esp + 0x28], 0x40
je 0x455f69
lea eax, [esp + 0x44]
push eax
mov esi, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], ebp
call fcn.00455590
add esp, 4
test eax, eax
je 0x4563f9
mov ebx, dword [esp + 0x44]
push ebp
call fcn.0048b955
mov ebx, dword [esp + 0x24]
xor ebp, ebp
mov al, byte [esp + 0x28]
test al, al
jns 0x455f99
lea ecx, [esp + 0x13]
push ecx
mov esi, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x17], 0
call fcn.00455550
add esp, 4
test eax, eax
je 0x4563f9
movzx eax, byte [esp + 0x13]
mov dword [edi + 0x2c], eax
cmp dword [0x4eba08], ebp
je 0x455fc2
push 0x4cf940
xor ecx, ecx
lea esi, [esp + 0x24]
call fcn.0040a923
test eax, eax
jg 0x455fc2
mov eax, dword [esp + 0x20]
call fcn.00403c4e
test eax, eax
je 0x455fd3
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0x48]
push edx
call fcn.0045233e
push edi
mov byte [esp + 0x9c], 6
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x455ff4
call fcn.0040448f
push edi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x20]
call fcn.004030b6
lea eax, [esp + 0x18]
call fcn.004030b6
lea eax, [esp + 0x1c]
mov byte [esp + 0x98], 3
call fcn.004030b6
cmp dword [esp + 0x14], ebx
jb 0x455b63
jmp 0x45643d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x45641a
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x11
mov eax, dword [edi + 0x4c]
cmp eax, ebp
je 0x45604e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x3c]
cmp eax, ebp
mov dword [esp + 0x48], eax
je 0x4560d7
mov eax, dword [edi + 0x40]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x44], eax
jbe 0x4560ca
lea ebx, [ebx]
mov edx, dword [esp + 0x48]
mov esi, dword [edx + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x456099
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456099
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
mov esi, dword [eax + ebx*8]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x4560c1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4560c1
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x44]
inc ebx
cmp ebx, eax
jb 0x456070
mov ecx, dword [edi + 0x3c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [edi + 0x34]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x4560ff
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x456105
push esi
call ebx
add esp, 4
jmp 0x456105
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [edi + 0x10]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x456125
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456125
push esi
call ebx
add esp, 4
mov esi, dword [edi + 0xc]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x456145
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456145
push esi
call ebx
add esp, 4
mov esi, dword [edi + 8]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x456411
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x456411
push esi
call ebx
add esp, 4
jmp 0x456411
lea eax, [esp + 0x30]
call fcn.004030b6
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x45641a
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x17
mov eax, dword [edi + 0x4c]
cmp eax, ebp
je 0x4561a3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ebp, dword [edi + 0x3c]
test ebp, ebp
je 0x456330
mov eax, dword [edi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x456213
jmp 0x4561c0
mov esi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x4561e5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4561e5
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x45620a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45620a
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x4561c0
mov eax, dword [edi + 0x3c]
push eax
jmp 0x456327
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [edi + 0x10]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x45623e
push esi
call ebp
test eax, eax
jg 0x45623e
push esi
call ebx
add esp, 4
mov esi, dword [edi + 0xc]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x45625a
push esi
call ebp
test eax, eax
jg 0x45625a
push esi
call ebx
add esp, 4
mov esi, dword [edi + 8]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x456276
push esi
call ebp
test eax, eax
jg 0x456276
push esi
call ebx
add esp, 4
push edi
call fcn.004c1ae4
add esp, 4
xor ebp, ebp
jmp 0x45641a
lea eax, [esp + 0x30]
call fcn.004030b6
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x45641a
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x1c
mov eax, dword [edi + 0x4c]
cmp eax, ebp
je 0x4562b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [edi + 0x3c]
test ebp, ebp
je 0x456330
mov eax, dword [edi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x456323
jmp 0x4562d0
mov esi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x4562f5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4562f5
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x45631a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45631a
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x4562d0
mov edx, dword [edi + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [edi + 0x34]
mov eax, dword [0x4e9154]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub esi, 0xc
cmp esi, eax
je 0x45621c
push esi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x456222
push esi
call ebx
add esp, 4
jmp 0x456222
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x45641a
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x21
mov eax, dword [edi + 0x4c]
cmp eax, ebp
je 0x45638d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [edi + 0x3c]
test ebp, ebp
je 0x456330
mov eax, dword [edi + 0x40]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x456323
mov esi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x4563c6
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4563c6
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [ebp + ebx*8]
mov eax, dword [0x4e9154]
sub esi, 0xc
cmp esi, eax
je 0x4563eb
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4563eb
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x4563a1
jmp 0x456323
push edi
mov byte [esp + 0x9c], 6
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x45641a
call fcn.0040448f
push edi
call fcn.004c1ae4
add esp, 4
lea eax, [esp + 0x20]
call fcn.004030b6
lea eax, [esp + 0x18]
call fcn.004030b6
lea eax, [esp + 0x1c]
mov byte [esp + 0x98], 3
call fcn.004030b6
mov ecx, dword [0x4ebaa0]
mov esi, dword [esp + 0xa0]
xor eax, eax
cmp ecx, ebp
sete al
push eax
push esi
call fcn.00453f91
call fcn.0045887c
mov esi, dword [esi + 4]
lea eax, [esp + 0x34]
call fcn.004030b6
lea eax, [esp + 0x38]
call fcn.004030b6
lea eax, [esp + 0x2c]
call fcn.004030b6
lea eax, [esp + 0x58]
call fcn.0040dbf7
xor ecx, ecx
cmp ecx, esi
sbb eax, eax
neg eax
jmp 0x455b00
mov ecx, dword [esp + 0x84]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x8c
ret 0xc