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

Disassembly:
push esi
call fcn.00523d50
mov esi, dword [esp + 8]
test ax, ax
mov word [esi + 0x10], ax
je 0x523ba2
push ebx
push ebp
push edi
call fcn.00523d30
mov byte [esi], al
call fcn.00523d30
mov byte [esi + 1], al
call fcn.00523d30
mov byte [esi + 2], al
call fcn.00523d30
mov byte [esi + 3], al
call fcn.00523d30
mov byte [esi + 4], al
call fcn.00523d30
mov byte [esi + 5], al
call fcn.00523d30
mov byte [esi + 6], al
call fcn.00523d30
mov byte [esi + 7], al
call fcn.00523d30
mov byte [esi + 8], al
call fcn.00523d30
mov byte [esi + 9], al
call fcn.00523d30
mov byte [esi + 0xa], al
call fcn.00523d50
mov word [esi + 0x12], ax
call fcn.00523d50
mov word [esi + 0x14], ax
call fcn.00523d50
mov word [esi + 0x16], ax
call fcn.00523d50
mov word [esi + 0x18], ax
call fcn.00523d50
mov word [esi + 0x1a], ax
call fcn.00523d50
mov word [esi + 0x1c], ax
call fcn.00523d50
mov word [esi + 0x1e], ax
call fcn.00523d50
mov word [esi + 0x20], ax
call fcn.00523d50
mov word [esi + 0x22], ax
call fcn.00523d50
mov word [esi + 0x24], ax
call fcn.00523d50
mov word [esi + 0x26], ax
call fcn.00523d50
mov word [esi + 0x28], ax
call fcn.00523d50
mov word [esi + 0x2a], ax
call fcn.00523d50
mov word [esi + 0x2c], ax
call fcn.00523d50
mov word [esi + 0x2e], ax
call fcn.00523d50
mov word [esi + 0x30], ax
call fcn.00523d50
mov word [esi + 0x32], ax
call fcn.00523e00
mov dword [esi + 0x50], eax
call fcn.00523e00
mov dword [esi + 0x54], eax
call fcn.00523e00
mov dword [esi + 0x58], eax
call fcn.00523eb0
fstp dword [esi + 0x64]
call fcn.00523f60
mov word [esi + 0x68], ax
call fcn.00523f60
mov word [esi + 0x6a], ax
call fcn.00523f60
mov word [esi + 0x6c], ax
call fcn.00523f60
mov word [esi + 0x6e], ax
call fcn.00523f60
mov word [esi + 0x70], ax
call fcn.00523f60
mov word [esi + 0x72], ax
call fcn.00523d50
mov word [esi + 0x74], ax
call fcn.00523d50
mov word [esi + 0x76], ax
call fcn.00523d50
mov word [esi + 0x78], ax
call fcn.00523d50
mov word [esi + 0x7a], ax
call fcn.00523d50
mov word [esi + 0x7c], ax
call fcn.00523d30
mov bl, al
mov byte [esi + 0x84], bl
call fcn.00523d30
test bl, bl
mov byte [esi + 0x8c], al
jbe 0x523a65
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 0x523a65
call fcn.00523d30
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 0x523a4e
mov al, byte [esi + 0x8c]
test al, al
jbe 0x523abb
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 0x523abb
call fcn.00523d30
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 0x523aa5
mov al, byte [esi]
cmp al, 1
jb 0x523ac5
cmp al, 0xb
jbe 0x523acd
cmp al, 0xd
jb 0x523b12
cmp al, 0x10
ja 0x523b12
cmp al, 1
jbe 0x523af8
mov al, byte [esi + 4]
test al, al
jbe 0x523ae4
movzx ax, al
mov word [esi + 0x34], ax
mov byte [esi + 4], 0
mov al, byte [esi + 6]
test al, al
jbe 0x523af8
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 0x523b8f
xor dx, dx
mov byte [esi + 5], 0
mov dl, al
mov word [esi + 0x38], dx
jmp 0x523b8f
cmp al, 0xc
jne 0x523b42
mov al, byte [esi + 5]
test al, al
jbe 0x523b24
mov byte [esi + 0xc], al
mov byte [esi + 5], 0
mov al, byte [esi + 6]
test al, al
jbe 0x523b32
mov byte [esi + 0xd], al
mov byte [esi + 6], 0
mov al, byte [esi + 7]
test al, al
jbe 0x523b8f
mov byte [esi + 0xe], al
mov byte [esi + 7], 0
jmp 0x523b8f
cmp al, 0x11
jne 0x523b8f
mov ax, word [esi + 0x2c]
xor ecx, ecx
cmp ax, cx
jle 0x523b59
mov word [esi + 0x3c], ax
mov word [esi + 0x2c], cx
mov ax, word [esi + 0x26]
cmp ax, cx
jle 0x523b6a
mov word [esi + 0x3e], ax
mov word [esi + 0x26], cx
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
ja 0x523b7b
mov al, byte [esi + 6]
test al, al
jbe 0x523b8f
lea ebx, [esi + 6]
push ebx
push edi
call fcn.005246d0
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 0x523ba2
mov al, byte [esi + 0xa]
mov byte [esi + 0xa], 0
mov byte [esi + 0xb], al
pop esi
ret 4