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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov ebx, ecx
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esi + 0x78], eax
lea eax, [esi + 0x1e]
mov word [eax], 0xffff
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
mov dword [esi + 0x14], ebx
js 0x5421c3
movzx edi, word [esi + 0x1e]
test di, di
je 0x541f34
dec edi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
movzx ebx, di
lea edx, [esi + 0x20]
push edx
mov dword [esi + 0x10], ebx
push ebx
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x541eab
pxor xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
mov dword [esi + 0x66], 0xffffffff
mov word [esi + 0x6a], 0xffff
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [esi + 0x40]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x541eab
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov ecx, dword [esi + 0x60]
mov ebx, 4
test byte [esi + 8], 1
jne 0x541edd
cmp byte [eax + 0x31], 0
je 0x541edd
cmp ecx, 7
jne 0x541edd
mov al, 1
mov dword [esi + 8], eax
jmp 0x541eae
xor ebx, ebx
inc ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x541ec2
mov dword [esi + 0x20], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or ebx, 4
cmp ebx, 4
jne 0x5421c3
add di, 0xffff
mov ebx, dword [esi + 0x14]
jb 0x541e36
jmp 0x541f42
test byte [esi + 0xc], 1
jne 0x541f08
mov eax, dword [eax + 0x34]
test eax, eax
je 0x541f08
cmp ecx, 1
jne 0x541f08
mov ecx, dword [esi + 0x58]
cmp eax, 0x59f
ja 0x541f04
cmp ecx, eax
jne 0x541f08
mov al, 1
mov dword [esi + 0xc], eax
jmp 0x541eae
test ecx, ecx
je 0x541f1e
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push dword [esi + 0x10]
push eax
call dword [ecx + 0x10]
mov ebx, eax
shr ebx, 0x1f
jmp 0x541eae
dec eax
shr eax, 5
mov ecx, 0x5b05b06
mul ecx
movzx eax, word [esi + 0x64]
inc edx
cmp edx, eax
je 0x541efd
jmp 0x541f08
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [ebx]
test byte [esi + 8], 1
jne 0x542047
cmp byte [eax + 0x31], 0
je 0x542047
mov dword [esi + 0x10], esp
push eax
mov eax, esp
mov edi, dword [ebx + 4]
mov dword [esi + 0x18], eax
mov dword [eax], edi
test edi, edi
je 0x54200f
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx], 0xffffffff
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [esi + 0x20], 0
lea ecx, [esi + 0x40]
mov word [ecx], 0
mov eax, dword [edi]
push ebx
mov ebx, ecx
push ecx
push edi
call dword [eax + 0xc]
test edi, edi
je 0x541fa9
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov esp, dword [esi + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x542020
pxor xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x50], xmm0
mov dword [esi + 0x66], 0xffffffff
mov word [esi + 0x6a], 0xffff
mov word [esi + 0x40], 0x30
mov dword [esi + 0x60], 7
mov word [esi + 0x48], 1
mov dword [esi + 0x44], 0x107cf
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
setns bl
mov eax, dword [esi + 0x20]
test eax, eax
je 0x542022
mov dword [esi + 0x20], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x542022
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx], 0xffffffff
jmp 0x541f86
xor ebx, ebx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x542037
mov dword [ecx], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esp, dword [esi + 0x10]
test bl, bl
je 0x5421c3
mov ebx, dword [esi + 0x14]
mov eax, dword [ebx]
test byte [esi + 0xc], 1
jne 0x5421bf
cmp dword [eax + 0x34], 0
je 0x5421bf
mov dword [esi + 0xc], esp
push eax
push eax
mov ecx, esp
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov edi, dword [eax + 0x34]
mov dword [ecx], ebx
test ebx, ebx
mov dword [esi + 0x10], ecx
je 0x54207c
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0x10]
mov dword [esi + 8], esp
mov dword [ecx + 4], edi
mov dword [esi + 0x3c], 0xffffffff
test ebx, ebx
je 0x542093
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea eax, [esi + 0x3c]
mov dword [eax], 0
lea edx, [esi + 0x40]
mov word [edx], 0
mov ecx, dword [ebx]
push eax
push edx
push ebx
call dword [ecx + 0xc]
test ebx, ebx
je 0x5420b6
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov esp, dword [esi + 8]
xor ebx, ebx
cmp dword [esi + 0x3c], 0
je 0x5421a1
pcmpeqd xmm0, xmm0
lea edi, [esi + 0x20]
movdqa xmmword [edi], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [edi + 8]
imul eax, eax, 0x3c
movzx edi, word [edi + 0xa]
add edi, eax
mov eax, dword [esi + 0x10]
mov ebx, dword [eax + 4]
cmp ebx, 0x59f
ja 0x5420ff
mov eax, edi
xor edx, edx
div ebx
mov dword [esi + 8], ebx
mov edi, edx
jmp 0x542106
mov dword [esi + 8], 0
mov ecx, 0x88888889
mov eax, edi
mul ecx
mov ecx, edx
pxor xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x50], xmm0
mov dword [esi + 0x66], 0xffffffff
mov word [esi + 0x6a], 0xffff
mov word [esi + 0x40], 0x30
mov dword [esi + 0x60], 1
mov eax, dword [esi + 0x20]
mov dword [esi + 0x44], eax
dec ebx
shr ebx, 5
mov edx, 0x5b05b06
mov eax, ebx
mul edx
movzx eax, word [esi + 0x26]
mov word [esi + 0x48], ax
shr ecx, 5
mov word [esi + 0x50], cx
imul eax, ecx, 0x3c
sub edi, eax
mov word [esi + 0x52], di
inc edx
mov word [esi + 0x64], dx
mov dword [esi + 0x54], 0x5a0
mov eax, dword [esi + 8]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [esi + 0x40]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
setns bl
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5421a1
mov dword [esi + 0x3c], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x5421b9
mov dword [ecx], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esp, edi
test bl, bl
je 0x5421c3
mov bl, 1
jmp 0x5421c5
xor ebx, ebx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
test eax, eax
je 0x5421dc
mov dword [ecx + 4], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret