Function at 0x521440
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x521463
push 0xd2
push str.srchashes_sha2_sha512.c
push str.md___NULL
call fcn.0052cf10
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x521481
push 0xd3
push str.srchashes_sha2_sha512.c
push str.out___NULL
call fcn.0052cf10
add esp, 0xc
mov edx, dword [esi + 0x48]
cmp edx, 0x80
jb 0x521495
pop edi
mov eax, 0x10
pop esi
pop ebp
ret
xor ecx, ecx
mov eax, edx
shld ecx, eax, 3
shl eax, 3
add dword [esi], eax
adc dword [esi + 4], ecx
mov byte [edx + esi + 0x4c], 0x80
inc dword [esi + 0x48]
mov eax, dword [esi + 0x48]
cmp eax, 0x70
jbe 0x5214e6
cmp eax, 0x80
jae 0x5214d2
lea esp, [esp]
mov byte [esi + eax + 0x4c], 0
inc dword [esi + 0x48]
mov eax, dword [esi + 0x48]
cmp eax, 0x80
jb 0x5214c0
lea eax, [esi + 0x4c]
push eax
push esi
call fcn.00522a60
add esp, 8
mov dword [esi + 0x48], 0
cmp dword [esi + 0x48], 0x78
jae 0x521501
lea esp, [esp]
mov eax, dword [esi + 0x48]
mov byte [eax + esi + 0x4c], 0
inc dword [esi + 0x48]
cmp dword [esi + 0x48], 0x78
jb 0x5214f0
movzx eax, byte [esi + 7]
mov byte [esi + 0xc4], al
movzx eax, byte [esi + 6]
mov byte [esi + 0xc5], al
movzx eax, byte [esi + 5]
mov byte [esi + 0xc6], al
movzx eax, byte [esi + 4]
mov byte [esi + 0xc7], al
movzx eax, byte [esi + 3]
mov byte [esi + 0xc8], al
movzx eax, byte [esi + 2]
mov byte [esi + 0xc9], al
movzx eax, byte [esi + 1]
mov byte [esi + 0xca], al
movzx eax, byte [esi]
mov byte [esi + 0xcb], al
lea eax, [esi + 0x4c]
push eax
push esi
call fcn.00522a60
movzx eax, byte [esi + 0xf]
mov byte [edi], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 1], al
movzx eax, byte [esi + 0xd]
mov byte [edi + 2], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [edi + 4], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 5], al
movzx eax, byte [esi + 9]
mov byte [edi + 6], al
movzx eax, byte [esi + 8]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x17]
mov byte [edi + 8], al
movzx eax, byte [esi + 0x16]
mov byte [edi + 9], al
movzx eax, byte [esi + 0x15]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0xc], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0x11]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 0xf], al
movzx eax, byte [esi + 0x1f]
mov byte [edi + 0x10], al
movzx eax, byte [esi + 0x1e]
mov byte [edi + 0x11], al
movzx eax, byte [esi + 0x1d]
mov byte [edi + 0x12], al
movzx eax, byte [esi + 0x1c]
mov byte [edi + 0x13], al
movzx eax, byte [esi + 0x1b]
mov byte [edi + 0x14], al
movzx eax, byte [esi + 0x1a]
mov byte [edi + 0x15], al
movzx eax, byte [esi + 0x19]
mov byte [edi + 0x16], al
movzx eax, byte [esi + 0x18]
mov byte [edi + 0x17], al
movzx eax, byte [esi + 0x27]
mov byte [edi + 0x18], al
movzx eax, byte [esi + 0x26]
mov byte [edi + 0x19], al
movzx eax, byte [esi + 0x25]
mov byte [edi + 0x1a], al
movzx eax, byte [esi + 0x24]
mov byte [edi + 0x1b], al
movzx eax, byte [esi + 0x23]
mov byte [edi + 0x1c], al
movzx eax, byte [esi + 0x22]
mov byte [edi + 0x1d], al
movzx eax, byte [esi + 0x21]
mov byte [edi + 0x1e], al
movzx eax, byte [esi + 0x20]
mov byte [edi + 0x1f], al
movzx eax, byte [esi + 0x2f]
mov byte [edi + 0x20], al
movzx eax, byte [esi + 0x2e]
mov byte [edi + 0x21], al
movzx eax, byte [esi + 0x2d]
mov byte [edi + 0x22], al
movzx eax, byte [esi + 0x2c]
mov byte [edi + 0x23], al
movzx eax, byte [esi + 0x2b]
mov byte [edi + 0x24], al
movzx eax, byte [esi + 0x2a]
mov byte [edi + 0x25], al
movzx eax, byte [esi + 0x29]
mov byte [edi + 0x26], al
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x27], al
movzx eax, byte [esi + 0x37]
mov byte [edi + 0x28], al
movzx eax, byte [esi + 0x36]
mov byte [edi + 0x29], al
movzx eax, byte [esi + 0x35]
mov byte [edi + 0x2a], al
movzx eax, byte [esi + 0x34]
mov byte [edi + 0x2b], al
movzx eax, byte [esi + 0x33]
mov byte [edi + 0x2c], al
movzx eax, byte [esi + 0x32]
mov byte [edi + 0x2d], al
movzx eax, byte [esi + 0x31]
mov byte [edi + 0x2e], al
movzx eax, byte [esi + 0x30]
mov byte [edi + 0x2f], al
movzx eax, byte [esi + 0x3f]
mov byte [edi + 0x30], al
movzx eax, byte [esi + 0x3e]
mov byte [edi + 0x31], al
movzx eax, byte [esi + 0x3d]
mov byte [edi + 0x32], al
movzx eax, byte [esi + 0x3c]
mov byte [edi + 0x33], al
movzx eax, byte [esi + 0x3b]
mov byte [edi + 0x34], al
movzx eax, byte [esi + 0x3a]
mov byte [edi + 0x35], al
movzx eax, byte [esi + 0x39]
mov byte [edi + 0x36], al
movzx eax, byte [esi + 0x38]
mov byte [edi + 0x37], al
movzx eax, byte [esi + 0x47]
mov byte [edi + 0x38], al
movzx eax, byte [esi + 0x46]
mov byte [edi + 0x39], al
movzx eax, byte [esi + 0x45]
mov byte [edi + 0x3a], al
movzx eax, byte [esi + 0x44]
mov byte [edi + 0x3b], al
movzx eax, byte [esi + 0x43]
mov byte [edi + 0x3c], al
movzx eax, byte [esi + 0x42]
mov byte [edi + 0x3d], al
movzx eax, byte [esi + 0x41]
mov byte [edi + 0x3e], al
movzx eax, byte [esi + 0x40]
push 0x110
push esi
mov byte [edi + 0x3f], al
call fcn.0051b090
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret