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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cd677
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x80
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x459461
cmp word [eax], bp
je 0x459461
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 SysReAllocStringLen
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xac], ebp
call fcn.0040db18
test eax, eax
jne 0x45881b
mov eax, dword [esp + 0x84]
cmp eax, ebp
je 0x458a43
push eax
jmp 0x458a28
mov ebx, dword [esp + 0x84]
cmp ebx, ebp
je 0x45882f
mov eax, dword [esp + 0x80]
jmp 0x458838
lea esi, [esp + 0x58]
call fcn.0040d967
cmp ebx, ebp
lea ecx, [ebx + eax]
mov dword [esp + 0x24], ecx
je 0x458a43
cmp eax, 0x10
jb 0x458a27
cmp dword [ebx], 0x4c425454
jne 0x458a27
mov ecx, dword [ebx + 4]
cmp ecx, 4
jg 0x458a27
mov eax, dword [ebx + 8]
cmp eax, ebp
je 0x45887f
cmp eax, 0xfde9
je 0x45887f
cmp eax, 0xffffffff
jne 0x458a27
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 0x4588a6
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x1c], eax
mov edx, dword [0x4f0980]
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.00458620
mov esi, eax
mov eax, dword [esp + 0xa8]
add esp, 8
add eax, 0x10
lea edi, [esp + 0x2c]
call fcn.00402f73
cmp esi, ebp
je 0x458a1e
cmp dword [esp + 0xa8], ebp
je 0x4589b3
mov eax, edi
call fcn.004031a9
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 0x45892d
lea esi, [esp + 0x58]
call fcn.0040da81
mov esi, dword [esp + 0x6c]
cmp esi, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x458954
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 0x458977
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 0x45898e
lea esi, [esp + 0x58]
call fcn.0040da81
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
cmp esi, ebp
je 0x45899d
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp edi, 0xffffffff
je 0x4589a9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x458ad0
mov eax, dword [0x4f0980]
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 0x458aeb
mov edx, dword [ebx + 8]
push edx
lea eax, [esp + 0x3c]
push eax
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.00458620
add esp, 8
test eax, eax
je 0x458a0c
mov ecx, dword [ebx + 8]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, edi
call fcn.00458620
add esp, 8
cmp eax, ebp
jne 0x458aeb
lea eax, [esp + 0x34]
call fcn.004031a9
lea eax, [esp + 0x38]
call fcn.004031a9
lea eax, [esp + 0x2c]
call fcn.004031a9
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 0x458a52
lea esi, [esp + 0x58]
call fcn.0040da81
mov esi, dword [esp + 0x6c]
cmp esi, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x458a79
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 0x458a9c
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 0x458ab3
lea esi, [esp + 0x58]
call fcn.0040da81
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
cmp esi, ebp
je 0x458ac2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp edi, 0xffffffff
je 0x458ace
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 [0x4f32bc]
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 0x458b1a
mov edx, dword [0x4f32c0]
mov eax, dword [esp + 0x34]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x458b1f
mov eax, 1
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x30], eax
cmp dword [esp + 0x14], edi
jae 0x45940d
mov edx, dword [0x4f0980]
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.00458620
add esp, 8
test eax, eax
je 0x4593fc
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebp
je 0x4593fc
lea ecx, [esp + 0x28]
push ecx
mov esi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebp
call fcn.00458540
add esp, 4
test eax, eax
je 0x4593fc
mov edx, dword [0x4f0980]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x28]
test bl, 1
mov dword [esp + 0x3c], 0xfffffffe
je 0x458bcb
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00458540
add esp, 4
test eax, eax
je 0x4593f3
and ebx, 2
je 0x458bf6
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.00458620
add esp, 8
test eax, eax
je 0x4593f3
test byte [esp + 0x28], 4
je 0x458c18
lea ecx, [esp + 0x3c]
push ecx
mov esi, edi
lea ecx, [esp + 0x18]
call fcn.00458560
add esp, 4
test eax, eax
je 0x4593f3
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x20]
call fcn.00402eaa
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 0x4f2710
mov ecx, esi
call fcn.0045650d
mov byte [esp + 0x98], 7
mov edi, dword [esp + 0x48]
cmp edi, ebp
je 0x4593ea
cmp bx, bp
je 0x458d51
mov eax, dword [edi + 8]
cmp eax, dword [esp + 0x18]
je 0x458d51
lea ebx, [eax - 0xc]
cmp dword [ebx], ebp
mov eax, dword [0x4f0984]
jge 0x458c83
cmp ebx, eax
jne 0x458c95
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0xc]
add esi, 0xfffffff4
cmp ecx, ebp
jge 0x458d21
cmp dword [ebx], 1
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 8]
jg 0x458ca6
cmp esi, dword [ebx + 8]
jle 0x458cfd
cmp ebx, eax
je 0x458ccc
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x458cbf
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [0x4f0980]
mov dword [edi + 8], eax
mov eax, dword [0x4f0984]
cmp esi, ebp
je 0x458cf3
lea eax, [esi + esi + 0xe]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebp
je 0x458d51
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 0x458d51
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 0x458d51
cmp ebx, eax
je 0x458d43
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x458d3a
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [0x4f0980]
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 0x458d82
lea ecx, [esp + 0x3c]
push ecx
mov esi, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00458560
add esp, 4
test eax, eax
je 0x458ff6
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x24], edx
test byte [esp + 0x28], 0x10
je 0x458e1f
mov eax, dword [0x4f0980]
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.00458620
add esp, 8
test eax, eax
je 0x459142
mov ecx, dword [esp + 0x30]
push ecx
push edi
call fcn.00456346
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.00458580
add esp, 4
test eax, eax
je 0x459256
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 + 0x1c], esi
mov word [edi + 0x14], dx
mov word [edi + 0x16], cx
mov byte [esp + 0x98], 7
call fcn.004031a9
test byte [esp + 0x28], 0x20
je 0x458f03
lea eax, [esp + 0x3c]
push eax
mov esi, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00458540
add esp, 4
test eax, eax
je 0x459335
movsx eax, word [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x40], ebp
jle 0x458efb
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [0x4f0980]
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.004585b0
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.00458620
mov edx, dword [esp + 0x48]
mov eax, dword [edx - 8]
add esp, 0xc
test eax, eax
je 0x458ed3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x458ed3
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push edi
call fcn.0040e163
inc esi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x30]
call fcn.004031a9
lea eax, [esp + 0x3c]
mov byte [esp + 0x98], 7
call fcn.004031a9
dec dword [esp + 0x44]
jne 0x458e62
mov ebx, dword [esp + 0x24]
push edi
call fcn.0045636e
xor ebp, ebp
test byte [esp + 0x28], 0x40
je 0x458f39
lea eax, [esp + 0x44]
push eax
mov esi, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], ebp
call fcn.00458560
add esp, 4
test eax, eax
je 0x4593c9
mov ebx, dword [esp + 0x44]
push ebp
call fcn.0048e57a
mov ebx, dword [esp + 0x24]
xor ebp, ebp
mov al, byte [esp + 0x28]
test al, al
jns 0x458f69
lea ecx, [esp + 0x13]
push ecx
mov esi, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x17], 0
call fcn.00458520
add esp, 4
test eax, eax
je 0x4593c9
movzx eax, byte [esp + 0x13]
mov dword [edi + 0x30], eax
cmp dword [0x4f32a8], ebp
je 0x458f92
push 0x4d4c90
xor ecx, ecx
lea esi, [esp + 0x24]
call fcn.0040a781
test eax, eax
jg 0x458f92
mov eax, dword [esp + 0x20]
call fcn.00403dd0
test eax, eax
je 0x458fa3
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0x48]
push edx
call fcn.00455366
push edi
mov byte [esp + 0x9c], 6
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x458fc4
call fcn.00404185
push edi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x20]
call fcn.004031a9
lea eax, [esp + 0x18]
call fcn.004031a9
lea eax, [esp + 0x1c]
mov byte [esp + 0x98], 3
call fcn.004031a9
cmp dword [esp + 0x14], ebx
jb 0x458b33
jmp 0x45940d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4593ea
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x11
mov eax, dword [edi + 0x50]
cmp eax, ebp
je 0x45901e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x40]
cmp eax, ebp
mov dword [esp + 0x48], eax
je 0x4590a7
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x44], eax
jbe 0x45909a
lea ebx, [ebx]
mov edx, dword [esp + 0x48]
mov esi, dword [edx + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x459069
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459069
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 [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x459091
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459091
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x44]
inc ebx
cmp ebx, eax
jb 0x459040
mov ecx, dword [edi + 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [edi + 0x38]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4590cf
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x4590d5
push esi
call ebx
add esp, 4
jmp 0x4590d5
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [edi + 0x10]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4590f5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4590f5
push esi
call ebx
add esp, 4
mov esi, dword [edi + 0xc]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x459115
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459115
push esi
call ebx
add esp, 4
mov esi, dword [edi + 8]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4593e1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4593e1
push esi
call ebx
add esp, 4
jmp 0x4593e1
lea eax, [esp + 0x30]
call fcn.004031a9
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4593ea
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x17
mov eax, dword [edi + 0x50]
cmp eax, ebp
je 0x459173
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ebp, dword [edi + 0x40]
test ebp, ebp
je 0x459300
mov eax, dword [edi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x4591e3
jmp 0x459190
mov esi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4591b5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4591b5
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4591da
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4591da
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x459190
mov eax, dword [edi + 0x40]
push eax
jmp 0x4592f7
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [edi + 0x10]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x45920e
push esi
call ebp
test eax, eax
jg 0x45920e
push esi
call ebx
add esp, 4
mov esi, dword [edi + 0xc]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x45922a
push esi
call ebp
test eax, eax
jg 0x45922a
push esi
call ebx
add esp, 4
mov esi, dword [edi + 8]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x459246
push esi
call ebp
test eax, eax
jg 0x459246
push esi
call ebx
add esp, 4
push edi
call fcn.004c73c6
add esp, 4
xor ebp, ebp
jmp 0x4593ea
lea eax, [esp + 0x30]
call fcn.004031a9
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4593ea
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x1c
mov eax, dword [edi + 0x50]
cmp eax, ebp
je 0x459287
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [edi + 0x40]
test ebp, ebp
je 0x459300
mov eax, dword [edi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x4592f3
jmp 0x4592a0
mov esi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4592c5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4592c5
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4592ea
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4592ea
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x4592a0
mov edx, dword [edi + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [edi + 0x38]
mov eax, dword [0x4f0984]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub esi, 0xc
cmp esi, eax
je 0x4591ec
push esi
call ebp
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_free]
jg 0x4591f2
push esi
call ebx
add esp, 4
jmp 0x4591f2
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4593ea
mov dword [esp + 0x48], edi
mov byte [esp + 0x98], 0x21
mov eax, dword [edi + 0x50]
cmp eax, ebp
je 0x45935d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebp, dword [edi + 0x40]
test ebp, ebp
je 0x459300
mov eax, dword [edi + 0x44]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x4592f3
mov esi, dword [ebp + ebx*8 + 4]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x459396
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x459396
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [ebp + ebx*8]
mov eax, dword [0x4f0984]
sub esi, 0xc
cmp esi, eax
je 0x4593bb
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4593bb
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x459371
jmp 0x4592f3
push edi
mov byte [esp + 0x9c], 6
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4593ea
call fcn.00404185
push edi
call fcn.004c73c6
add esp, 4
lea eax, [esp + 0x20]
call fcn.004031a9
lea eax, [esp + 0x18]
call fcn.004031a9
lea eax, [esp + 0x1c]
mov byte [esp + 0x98], 3
call fcn.004031a9
mov ecx, dword [0x4f3340]
mov esi, dword [esp + 0xa0]
xor eax, eax
cmp ecx, ebp
sete al
push eax
push esi
call fcn.00456f61
call fcn.004ab264
mov esi, dword [esi + 4]
lea eax, [esp + 0x34]
call fcn.004031a9
lea eax, [esp + 0x38]
call fcn.004031a9
lea eax, [esp + 0x2c]
call fcn.004031a9
lea eax, [esp + 0x58]
call fcn.0040db08
xor ecx, ecx
cmp ecx, esi
sbb eax, eax
neg eax
jmp 0x458ad0
mov ecx, dword [esp + 0x84]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x8c
ret 0xc