Function at 0x5f4ba3
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
call fcn.005f4bdd
pop ebp
mov eax, 0x50010923
sub eax, 0x5001091c
sub ebp, eax
lea esi, [ebp - 0x35b]
mov eax, dword [esi]
cmp eax, 0
je 0x5f4be1
lea esi, [ebp - 0x34f]
mov eax, dword [esi]
cmp eax, 1
mov dword [esi], 1
je 0x5f4e77
jmp 0x5f4be1
mov edx, ebp
mov eax, dword [ebp - 0x39b]
sub edx, eax
mov dword [ebp - 0x39b], edx
add dword [ebp - 0x367], edx
lea esi, [ebp - 0x34b]
add dword [esi], edx
mov esi, dword [esi]
mov edi, ebp
push edx
push ebp
push edi
push pe_nt_image_headers32
push 0x1000
push 0x40000
push 0
jmp 0x5f4c1a
call dword [ebp - 0x32b]
test eax, eax
je fcn.005f50ed
mov dword [ebp - 0x387], eax
call fcn.005f4c16
pop ebx
mov ecx, 0x50010e6e
sub ecx, 0x500109ac
add ebx, ecx
push eax
push eax
push ebx
call fcn.005f5044
pop eax
pop edi
pop ebp
pop edx
add edi, dword [ebp - 0x3a3]
pushal
add eax, 0x10000
push eax
lea esi, [ebp - 0x337]
add eax, 0x10050
push edi
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop eax
push edi
push eax
push eax
push 0
push 1
push eax
add eax, 0xeec0
call eax
pop eax
push eax
add eax, 0x16ba
call eax
add esp, 4
pop eax
pop edi
push eax
push 8
push 0xc
add eax, 0x185d
push edi
call eax
add esp, 0x10
popal
pushal
jmp 0x5f4cb0
lea esi, [ebp - 0x383]
call fcn.005f4ca3
pop ebx
mov ecx, 0x50010a5e
sub ecx, 0x50010a34
add ebx, ecx
mov ecx, dword [esi]
add esi, 4
cmp dword [esi], 0
je 0x5f4cef
add eax, dword [esi]
push esi
push ecx
push eax
push ebx
push edi
push ebx
push ecx
push edi
push edi
push 0
call eax
pop edi
pop ebx
pop eax
pop ecx
pop esi
add esi, 4
jmp 0x5f4cce
popal
mov ebx, edi
cmp dword [edi], 0
jne 0x5f4d01
add edi, 4
mov ecx, 0
jmp 0x5f4d17
mov ecx, 1
add edi, dword [ebx]
add ebx, 4
cmp dword [ebx], 0
je 0x5f4d3d
add dword [ebx], edx
mov esi, dword [ebx]
add edi, dword [ebx + 4]
push edi
push ecx
push edx
push ebx
push dword [ebp - 0x327]
push dword [ebp - 0x32b]
push esi
push edi
call dword [ebp - 0x387]
pop ebx
pop edx
pop ecx
pop edi
cmp ecx, 0
je 0x5f4d3d
add ebx, 8
jmp 0x5f4d0b
jmp 0x5f4d52
lea esi, [ebp - 0x367]
mov ecx, dword [esi + 4]
lea edx, [esi + 8]
mov esi, dword [esi]
mov edi, esi
cmp ecx, 0
je 0x5f4da6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f4d67
mov eax, dword [edi]
cmp byte [edx + 1], 0
je 0x5f4d8c
mov bl, byte [edx]
cmp byte [edi], bl
jne 0x5f4d67
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
jmp 0x5f4d96
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
mov dword [edi], eax
add edi, 5
sub bl, 0xe8
mov eax, ebx
loop 0x5f4d6c
call fcn.005f4e7e
lea ecx, [ebp - 0x35b]
mov eax, dword [ecx + 4]
cmp eax, 0
je 0x5f4e3e
mov esi, edx
sub esi, dword [ecx + 8]
je 0x5f4e3e
mov dword [ecx + 8], esi
mov eax, dword [ecx]
lea esi, [ebp - 0x34b]
mov esi, dword [esi]
lea ebx, [esi - 4]
cmp eax, 1
je 0x5f4de3
mov edi, edx
add edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x5f4deb
mov edi, esi
add edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5f4e14
cmp al, 0xef
ja 0x5f4dfe
add ebx, eax
add dword [ebx], ecx
jmp 0x5f4deb
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x5f4df8
mov eax, dword [edi]
add edi, 4
jmp 0x5f4df8
xor ebx, ebx
xchg esi, edi
mov eax, dword [esi]
cmp eax, 0
je 0x5f4e3e
lodsd eax, dword [esi]
or eax, eax
je 0x5f4e2c
add ebx, eax
add word [ebx + edi], cx
jmp 0x5f4e1f
xor ebx, ebx
shr ecx, 0x10
lodsd eax, dword [esi]
or eax, eax
je 0x5f4e3e
add ebx, eax
add word [ebx + edi], cx
jmp 0x5f4e31
mov ebx, ebp
sub ebx, 0x2d
xor ecx, ecx
mov cl, byte [ebx]
cmp ecx, 0
je 0x5f4e77
inc ebx
lea esi, [ebp - 0x39b]
mov edx, dword [esi]
push esi
push ecx
push ebx
push edx
push esi
push dword [ebx]
push dword [ebx + 4]
mov eax, dword [ebx + 8]
add eax, edx
push eax
call dword [ebp - 0x32f]
pop edx
pop ebx
pop ecx
pop esi
add ebx, 0xc
loop 0x5f4e58
popal
popfd
jmp 0x489f60