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

Disassembly:
push esi
call fcn.00520420
mov esi, dword [esp + 8]
test ax, ax
mov word [esi + 0x10], ax
je 0x520272
push ebx
push ebp
push edi
call fcn.00520400
mov byte [esi], al
call fcn.00520400
mov byte [esi + 1], al
call fcn.00520400
mov byte [esi + 2], al
call fcn.00520400
mov byte [esi + 3], al
call fcn.00520400
mov byte [esi + 4], al
call fcn.00520400
mov byte [esi + 5], al
call fcn.00520400
mov byte [esi + 6], al
call fcn.00520400
mov byte [esi + 7], al
call fcn.00520400
mov byte [esi + 8], al
call fcn.00520400
mov byte [esi + 9], al
call fcn.00520400
mov byte [esi + 0xa], al
call fcn.00520420
mov word [esi + 0x12], ax
call fcn.00520420
mov word [esi + 0x14], ax
call fcn.00520420
mov word [esi + 0x16], ax
call fcn.00520420
mov word [esi + 0x18], ax
call fcn.00520420
mov word [esi + 0x1a], ax
call fcn.00520420
mov word [esi + 0x1c], ax
call fcn.00520420
mov word [esi + 0x1e], ax
call fcn.00520420
mov word [esi + 0x20], ax
call fcn.00520420
mov word [esi + 0x22], ax
call fcn.00520420
mov word [esi + 0x24], ax
call fcn.00520420
mov word [esi + 0x26], ax
call fcn.00520420
mov word [esi + 0x28], ax
call fcn.00520420
mov word [esi + 0x2a], ax
call fcn.00520420
mov word [esi + 0x2c], ax
call fcn.00520420
mov word [esi + 0x2e], ax
call fcn.00520420
mov word [esi + 0x30], ax
call fcn.00520420
mov word [esi + 0x32], ax
call fcn.005204d0
mov dword [esi + 0x50], eax
call fcn.005204d0
mov dword [esi + 0x54], eax
call fcn.005204d0
mov dword [esi + 0x58], eax
call fcn.00520580
fstp dword [esi + 0x64]
call fcn.00520630
mov word [esi + 0x68], ax
call fcn.00520630
mov word [esi + 0x6a], ax
call fcn.00520630
mov word [esi + 0x6c], ax
call fcn.00520630
mov word [esi + 0x6e], ax
call fcn.00520630
mov word [esi + 0x70], ax
call fcn.00520630
mov word [esi + 0x72], ax
call fcn.00520420
mov word [esi + 0x74], ax
call fcn.00520420
mov word [esi + 0x76], ax
call fcn.00520420
mov word [esi + 0x78], ax
call fcn.00520420
mov word [esi + 0x7a], ax
call fcn.00520420
mov word [esi + 0x7c], ax
call fcn.00520400
mov bl, al
mov byte [esi + 0x84], bl
call fcn.00520400
test bl, bl
mov byte [esi + 0x8c], al
jbe 0x520135
and ebx, 0xff
push 1
push ebx
lea ebp, [esi + 0x80]
push 1
push 0x11
push ebp
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
xor ebx, ebx
mov edi, 1
mov bl, byte [esi + 0x84]
add esp, 0x1c
cmp ebx, edi
jl 0x520135
call fcn.00520400
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 0x14]
inc edi
cmp edi, ebx
mov byte [edx + edi - 1], al
jle 0x52011e
mov al, byte [esi + 0x8c]
test al, al
jbe 0x52018b
and eax, 0xff
push 1
push eax
lea ebx, [esi + 0x88]
push 1
push 0x11
push ebx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
xor eax, eax
mov edi, 1
mov al, byte [esi + 0x8c]
add esp, 0x1c
mov ebp, eax
cmp ebp, edi
jl 0x52018b
call fcn.00520400
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 0x14]
inc edi
cmp edi, ebp
mov byte [edx + edi - 1], al
jle 0x520175
mov al, byte [esi]
cmp al, 1
jb 0x520195
cmp al, 0xb
jbe 0x52019d
cmp al, 0xd
jb 0x5201e2
cmp al, 0x10
ja 0x5201e2
cmp al, 1
jbe 0x5201c8
mov al, byte [esi + 4]
test al, al
jbe 0x5201b4
movzx ax, al
mov word [esi + 0x34], ax
mov byte [esi + 4], 0
mov al, byte [esi + 6]
test al, al
jbe 0x5201c8
xor cx, cx
mov byte [esi + 6], 0
mov cl, al
mov word [esi + 0x3a], cx
mov al, byte [esi + 5]
test al, al
je 0x52025f
xor dx, dx
mov byte [esi + 5], 0
mov dl, al
mov word [esi + 0x38], dx
jmp 0x52025f
cmp al, 0xc
jne 0x520212
mov al, byte [esi + 5]
test al, al
jbe 0x5201f4
mov byte [esi + 0xc], al
mov byte [esi + 5], 0
mov al, byte [esi + 6]
test al, al
jbe 0x520202
mov byte [esi + 0xd], al
mov byte [esi + 6], 0
mov al, byte [esi + 7]
test al, al
jbe 0x52025f
mov byte [esi + 0xe], al
mov byte [esi + 7], 0
jmp 0x52025f
cmp al, 0x11
jne 0x52025f
mov ax, word [esi + 0x2c]
xor ecx, ecx
cmp ax, cx
jle 0x520229
mov word [esi + 0x3c], ax
mov word [esi + 0x2c], cx
mov ax, word [esi + 0x26]
cmp ax, cx
jle 0x52023a
mov word [esi + 0x3e], ax
mov word [esi + 0x26], cx
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
ja 0x52024b
mov al, byte [esi + 6]
test al, al
jbe 0x52025f
lea ebx, [esi + 6]
push ebx
push edi
call fcn.00520da0
mov word [esi + 0x40], ax
mov byte [edi], 0
mov byte [ebx], 0
mov al, byte [esi]
pop edi
pop ebp
cmp al, 1
pop ebx
jbe 0x520272
mov al, byte [esi + 0xa]
mov byte [esi + 0xa], 0
mov byte [esi + 0xb], al
pop esi
ret 4