Function at 0x521a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5aeee1
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x628d00]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x628d00]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
push eax
call edx
mov esi, eax
lea eax, [edi + 0x10]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], al
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 0x613004
push str.EncodingParameters
mov ecx, ebx
mov dword [esp + 0x12c], 3
call edx
push 0x10
push edi
lea ecx, [esp + 0x44]
call fcn.00521600
mov edi, dword [esp + 0x34]
push esi
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x128], 4
call fcn.0052fa50
cmp byte [esp + 0x14], 0
je 0x521b5c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
jmp 0x521b64
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.0052fa50
cmp byte [esp + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
jne 0x521b94
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [esp + 0x10c], eax
push 8
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x48]
call fcn.0052fa50
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x40]
lea ebx, [eax + 0x40]
call edx
mov edx, dword [ebx]
push eax
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x48]
call edx
test al, al
jne 0x521c67
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x100]
mov byte [esi], al
lea eax, [esp + 0xb4]
mov dword [esi + 4], 0
mov byte [esp + 0x120], 3
cmp edi, eax
jne 0x521c0f
mov ecx, dword [esp + 0xfc]
xor eax, eax
mov byte [esp + 0xf5], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xb0]
lea ecx, [esp + 0x64]
cmp edi, ecx
jne 0x521c31
mov ecx, dword [esp + 0xac]
xor eax, eax
mov byte [esp + 0xa5], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
xor al, al
push edi
rep stosb byte es:[edi], al
call fcn.00493190
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor al, al
push edi
mov dword [esp + 0x128], 0xffffffff
rep stosb byte es:[edi], al
call fcn.00493190
mov eax, esi
jmp 0x521d05
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push esi
push edx
push edi
push eax
call fcn.00493410
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x110]
lea ecx, [esp + 0xc4]
add esp, 0x10
mov byte [ebx], 1
mov dword [ebx + 4], esi
mov byte [esp + 0x120], 3
cmp edi, ecx
jne 0x521cb2
mov ecx, dword [esp + 0xfc]
xor eax, eax
mov byte [esp + 0xf5], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xb0]
lea edx, [esp + 0x64]
cmp edi, edx
jne 0x521cd4
mov ecx, dword [esp + 0xac]
xor eax, eax
mov byte [esp + 0xa5], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
xor al, al
push edi
rep stosb byte es:[edi], al
call fcn.00493190
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor al, al
push edi
mov dword [esp + 0x128], 0xffffffff
rep stosb byte es:[edi], al
call fcn.00493190
mov eax, ebx
add esp, 8
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00531be5
mov esp, ebp
pop ebp
ret 0x18