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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x405216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404c08
mov eax, dword [0x53aa80]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [0x53aa4c], 0xffffffff
jne 0x522fbc
mov eax, dword [0x538c1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, esi
fnclex
jge 0x522fbc
mov edx, dword [0x538c1c]
push 0x50
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x538c1c]
lea edx, [ebp - 0x48]
push edx
mov edx, dword [0x53aa54]
mov ecx, dword [eax]
push 0x3f800000
push edx
mov edx, dword [0x53aa50]
push 0x2a4
push 0x155a
push esi
push edx
push 0x3e
push 7
push eax
call dword [ecx + 0x78]
cmp eax, esi
fnclex
jge 0x523008
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edi, dword [0x53aa50]
mov eax, dword [0x538c1c]
lea ecx, [ebp - 0x48]
mov edx, dword [eax]
push ecx
mov ecx, dword [0x53aa54]
push 0x3f800000
push 0x14
push 0x2a4
push 0x179d
add edi, ecx
push esi
push edi
push 0x3e
push 7
push eax
call dword [edx + 0x78]
cmp eax, esi
fnclex
jge 0x523057
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x53aa50]
add eax, 0xe
push eax
push 0x190
push 0x53aa64
push 0xe
call fcn.00437470
movsx edx, word [0x53aa60]
mov ecx, dword [0x53aa50]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov eax, 1
mov dword [ebp - 0x18], 0x429a0000
lea ebx, [ecx + 0x1e]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x58]
jg 0x523662
mov ecx, 0x53aa50
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, esi
lea eax, [eax + eax*8]
cmp dword [ecx + eax*8 + 0x3c], 1
jne 0x5231b2
fld dword [ebp - 0x18]
fadd dword [0x4013c0]
mov edx, dword [0x538c1c]
lea eax, [ebp - 0x48]
push eax
push 0x3f800000
mov esi, dword [edx]
push 0x2c
push 0x2c
push 0x27e
lea ecx, [ebx + 1]
push 0x321
push ecx
call edi
mov edx, dword [0x538c1c]
push eax
push 2
push edx
call dword [esi + 0x78]
test eax, eax
fnclex
jge 0x523116
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
fld dword [ebp - 0x18]
fadd dword [0x4022a0]
mov eax, 0x53aa50
lea ecx, [ebp - 0x48]
push ecx
push 0x20
mov edx, dword [eax + 0xc]
mov eax, dword [0x538c1c]
mov dword [ebp - 0x60], edx
lea edx, [ebx + 7]
mov esi, dword [eax]
push edx
call edi
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x14]
push eax
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, esi
sub eax, edx
lea eax, [eax + eax*8]
mov dl, byte [ecx + eax*8 + 2]
mov eax, dword [0x538c1c]
mov ecx, dword [ebp - 0x64]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
fnclex
jge 0x523186
mov edx, dword [0x538c1c]
push 0xa0
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp word [ebp - 0x48], 0
je 0x5232a1
mov eax, 0x53aa50
mov ecx, dword [eax + 0xc]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*8]
movsx edx, word [ecx + eax*8]
mov dword [ebp - 0x34], edx
jmp 0x5232a1
mov eax, dword [0x538c1c]
lea ecx, [ebp - 0x48]
fld dword [ebp - 0x18]
mov esi, dword [eax]
push ecx
push 0x3f800000
push 0x2d
push 0x2d
push 0xa5d
push 0xca
push ebx
call edi
mov edx, dword [0x538c1c]
push eax
push 7
push edx
call dword [esi + 0x78]
test eax, eax
fnclex
jge 0x5231fe
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
fld dword [ebp - 0x18]
mov eax, 0x53aa50
push 0x2e
push 0x3f800000
push ebx
mov edx, dword [eax + 0xc]
mov eax, dword [0x538c1c]
mov dword [ebp - 0x60], edx
mov esi, dword [eax]
call edi
mov ecx, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0xc]
movsx ecx, word [eax + edx*8 + 2]
mov edx, dword [0x538c1c]
push ecx
push edx
call dword [esi + 0x9c]
test eax, eax
fnclex
jge 0x52325e
mov ecx, dword [0x538c1c]
push 0x9c
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
fild dword [0x538ae4]
fld dword [ebp - 0x18]
fcompp
fnstsw ax
test ah, 1
je 0x52329e
fild dword [0x538ae4]
fld dword [ebp - 0x18]
fadd dword [0x403a48]
fcompp
fnstsw ax
test ah, 0x41
jne 0x52329e
mov eax, dword [0x538ae8]
cmp eax, ebx
jle 0x52329e
lea edx, [ebx + 0x2e]
cmp eax, edx
jge 0x52329e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x14]
mov eax, 0x53aa50
lea edx, [ebp - 0x40]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
fld dword [ebp - 0x18]
fadd dword [0x401724]
lea eax, [ebx + 5]
push eax
call edi
mov ecx, dword [ebp - 0x40]
push eax
mov eax, esi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx*8 + 0x10]
push ecx
push 0xf
call fcn.00439580
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 0x53aa50
mov ecx, dword [eax + 0xc]
mov eax, esi
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0xc]
lea eax, [eax + eax*8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 0x44]
test edx, edx
jne 0x523317
mov dword [ebp - 0x38], 0x1e
mov dword [ebp - 0x30], 3
jmp 0x523325
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
cmp word [eax + 0x38], 0
je 0x523397
cmp word [eax + 0x1e], 0
lea esi, [ebx + 0x2f]
push 0
je 0x52336b
fild dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
push 0
push 0
push eax
fadd dword [ebp - 0x18]
push esi
call edi
push eax
push 0x53aa6c
call fcn.0043cac0
test ax, ax
je 0x5235be
mov ecx, dword [ebp - 0x14]
mov dword [0x53aa4c], ecx
jmp 0x5235be
fild dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
push edx
push esi
fadd dword [ebp - 0x18]
call edi
push eax
push 0x53aa6c
call fcn.0043d2a0
test ax, ax
je 0x5235be
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jmp 0x5235be
mov eax, 0x53aa50
cmp word [eax + 0x24], 0
je 0x52343f
push ecx
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
fld dword [ebp - 0x18]
fadd dword [0x401724]
push 0x90
lea edx, [ebx + 0x14]
push 0x9b
push edx
call edi
mov ecx, dword [ebp - 0x40]
push eax
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*8]
lea edx, [ecx + eax*8 + 0x14]
push edx
call fcn.00436840
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 0x53aa50
lea edx, [ebp - 0x40]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
fld dword [ebp - 0x18]
fadd dword [0x401724]
push 0x90
lea eax, [ebx + 0x1f]
push 0xb1
push eax
call edi
mov ecx, dword [ebp - 0x40]
push eax
mov eax, esi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx*8 + 0x18]
push ecx
call fcn.00436840
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 0x53aa50
mov ecx, dword [eax + 0xc]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*8]
lea ecx, [ecx + eax*8]
mov ax, word [ecx + 8]
cmp ax, 2
jne 0x523509
cmp word [ecx + 0x1e], 0
mov edx, 0x42adcc
lea ecx, [ebp - 0x44]
je 0x5234c5
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
fild dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
push 0
push 0
lea esi, [ebx + 0x2f]
fadd dword [ebp - 0x18]
push 0
push edx
push esi
call edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x4c], 0
je 0x5235be
mov ecx, dword [ebp - 0x14]
add ecx, 0x3e8
mov dword [0x53aa4c], ecx
jmp 0x5235be
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
fild dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
lea esi, [ebx + 0x2f]
push 0
push edx
fadd dword [ebp - 0x18]
push esi
call edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0043d2a0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x4c], 0
je 0x5235be
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
jmp 0x5235be
cmp ax, 1
jne 0x523561
fild dword [0x538ae4]
fld dword [ebp - 0x18]
fadd dword [0x401724]
fcompp
fnstsw ax
test ah, 1
je 0x523561
movsx edx, word [ecx + 0x1c]
fild dword [0x538ae4]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fld dword [ebp - 0x18]
fadd dword [0x401724]
faddp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x523561
mov eax, dword [0x538ae8]
lea edx, [ebx + 0x1e]
cmp eax, edx
jle 0x523561
lea edx, [ebx + 0x29]
cmp eax, edx
jge 0x523561
mov dword [ebp - 0x24], esi
cmp word [ecx + 0x1e], 0
lea esi, [ebx + 0x2f]
push 0
je 0x52359b
fild dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
push 0
push 0
push eax
fadd dword [ebp - 0x18]
push esi
call edi
push eax
push 0x53aa6c
call fcn.0043cac0
test ax, ax
je 0x5235be
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [0x53aa4c], eax
jmp 0x5235be
fild dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
push ecx
push esi
fadd dword [ebp - 0x18]
call edi
push eax
push 0x53aa6c
call fcn.0043d2a0
test ax, ax
je 0x5235be
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x38], 0xc
jne 0x523626
mov eax, dword [0x539010]
lea ecx, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
fld dword [ebp - 0x18]
fadd dword [0x403cb4]
push 0
push 0
push 1
push 0xd
push esi
call edi
push eax
mov eax, dword [ebp - 0x40]
mov edx, 4
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, esi
lea ecx, [eax + edx*4]
push ecx
call fcn.0043cac0
lea edx, [ebp - 0x40]
mov dword [ebp - 0x48], eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
cmp word [ebp - 0x48], 0
je 0x523626
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
add eax, 0x7d0
mov dword [0x53aa4c], eax
fld dword [ebp - 0x18]
mov eax, 0x53aa50
fadd dword [eax + 8]
fst dword [ebp - 0x18]
fcomp dword [0x404c00]
fnstsw ax
test ah, 0x41
jne 0x52364b
mov dword [ebp - 0x18], 0x429a0000
add ebx, 0x46
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, ecx
jmp 0x523099
mov eax, dword [0x53aa80]
test eax, eax
jne 0x5237be
mov edi, 0x53aa50
mov eax, dword [edi]
add eax, 0xf
push eax
push 0x2c6
call fcn.0043c6d0
test ax, ax
je 0x523693
mov dword [0x53aa4c], 0x270f
mov eax, dword [ebp - 0x34]
test eax, eax
jle 0x5236a0
push eax
call fcn.004d9a20
test esi, esi
jle 0x5236f1
cmp word [edi + 0x24], 0
mov eax, dword [edi + 0xc]
je 0x5236cd
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub esi, ecx
push 0
push 0
lea ecx, [esi + esi*8]
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 4]
mov dx, word [eax]
push ecx
push 0
push edx
jmp 0x5236ec
mov ebx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub esi, ebx
lea ecx, [esi + esi*8]
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x18]
mov edx, dword [eax + 4]
mov ax, word [eax]
push ecx
push 0
push edx
push 0
push eax
call fcn.004d3af0
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x52371c
mov ecx, dword [edi + 0xc]
push 0
push 0
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*8 + 0xc]
lea eax, [eax + edx*8]
push ecx
push 0
mov dx, word [eax + 0xa]
push edx
call fcn.004d3af0
mov esi, dword [ebp - 0x20]
test esi, esi
jle 0x523765
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov edx, dword [0x538ae8]
mov eax, dword [0x538ae4]
push 0xf3
push edx
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x14]
sub esi, edx
mov edx, dword [eax + 0xc]
lea ecx, [esi + esi*8]
lea eax, [edx + ecx*8 + 0x30]
push eax
call fcn.0043c160
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov esi, dword [ebp - 0x2c]
test esi, esi
jle 0x52395c
mov edx, dword [edi + 0xc]
lea eax, [ebp - 0x40]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [0x538ae8]
mov edx, dword [0x538ae4]
mov eax, dword [ebp - 0x40]
push 0xa6
push ecx
push edx
mov edx, dword [eax + 0x14]
sub esi, edx
mov edx, dword [eax + 0xc]
lea ecx, [esi + esi*8]
lea eax, [edx + ecx*8 + 0x34]
push eax
call fcn.0043c160
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
wait
push 0x523979
jmp 0x523978
mov eax, dword [0x538c1c]
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
test eax, eax
fnclex
jge 0x5237e4
mov ecx, dword [0x538c1c]
push 0x50
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x538c1c]
lea ecx, [ebp - 0x48]
push ecx
push 0x3f800000
mov edx, dword [eax]
push 0x6c
push 0x10a
push 0x2ea
push 0x7cb
push 0xf6
push 0x10b
push 5
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x523830
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x42bb60
lea ecx, [ebp - 0x44]
call esi
push 0x102
lea eax, [ebp - 0x44]
push 0x190
push eax
push 1
call fcn.00437470
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x44]
call edi
mov edx, 0x42771c
lea ecx, [ebp - 0x44]
call esi
push 0
push 0
push 6
push 0
push 0x147
lea ecx, [ebp - 0x44]
push 0x11f
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x44]
mov ebx, eax
call edi
test bx, bx
je 0x52389b
mov dword [0x53aa4c], 0x270d
mov edx, 0x427728
lea ecx, [ebp - 0x44]
call esi
push 0
push 0
push 9
push 0
push 0x147
lea edx, [ebp - 0x44]
push 0x1d4
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x44]
mov ebx, eax
call edi
test bx, bx
je 0x5238d6
mov dword [0x53aa4c], 0x270e
mov edx, 0x425900
lea ecx, [ebp - 0x44]
call esi
push 0
push 0
push 8
push 4
push 0x100
lea eax, [ebp - 0x44]
push 0x1fe
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x44]
mov esi, eax
call edi
test si, si
je 0x523911
mov dword [0x53aa4c], 0x270a
push 0
push 0
push 1
push 0xe6
push 0x121
push 0x11f
push 0x5398d0
push 0xc
call fcn.0043afa0
cmp dword [0x53aa4c], 0x270a
jne 0x52395c
mov ecx, dword [0x538ae8]
mov edx, dword [0x538ae4]
add ecx, 0x14
add edx, 0x14
push ecx
push edx
push 0x53aa88
call fcn.00436b00
wait
push 0x523979
jmp 0x523978
ret