Function at 0x4a4730
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, 0x48
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403158
movsx edx, word [0x53984a]
mov ecx, dword [0x538a20]
mov eax, dword [0x538a1c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x539844]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], edx
mov edi, 1
cmp edi, dword [ebp - 0x34]
jg 0x4a4c76
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
mov edx, dword [ecx + 0xc]
lea eax, [eax + eax*2]
shl eax, 5
cmp word [eax + edx + 0xe], 0
je 0x4a4c6a
mov eax, dword [0x539840]
lea ecx, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [0x539844]
mov eax, edi
mov esi, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov ebx, dword [esi + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add edx, eax
movsx eax, word [edx + 0x40]
sub eax, ebx
mov ebx, eax
shl ebx, 5
add ebx, eax
mov eax, dword [esi + 0xc]
cmp word [eax + ebx*8 + 0x18], 0
lea esi, [eax + ebx*8 + 0x10]
je 0x4a4c5a
mov al, byte [edx + 0x18]
test al, al
jne 0x4a4813
push edi
call fcn.004a36a0
mov ecx, dword [0x539844]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add eax, edx
cmp word [eax + 0x3c], 0
je 0x4a4a1e
cmp word [eax + 0x44], 0
je 0x4a494d
fld dword [eax + 0x54]
fadd dword [eax + 0x50]
fstp dword [eax + 0x50]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add edx, eax
fld dword [edx + 0x50]
fcomp dword [edx + 0x48]
fnstsw ax
test ah, 0x41
jne 0x4a486a
mov dword [edx + 0x50], 0xbecccccd
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x20]
fld dword [eax + 0x50]
fadd dword [0x4013c0]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
push ecx
push edx
movsx ecx, word [eax + 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov ecx, dword [0x539844]
mov dx, ax
mov ax, word [esi + 0x1c]
imul edx, eax
fld dword [esi + 0x10]
fisub dword [ebp - 0x18]
mov eax, edi
sub eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + ecx + 8]
movsx ecx, word [esi + 0x2a]
mov dword [ebp - 0x3c], ecx
sub eax, edx
fild dword [ebp - 0x3c]
push eax
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x24]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x40], edx
push eax
fild dword [ebp - 0x40]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx + 4]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4947
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x539844]
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x20]
fld dword [eax + 0x28]
fadd dword [0x4013c0]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
push ecx
push edx
movsx ecx, word [eax + 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov ecx, dword [0x539844]
mov dx, ax
mov ax, word [esi + 0x1c]
imul edx, eax
fld dword [esi + 0x10]
fisub dword [ebp - 0x18]
mov eax, edi
sub eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + ecx + 8]
movsx ecx, word [esi + 0x2a]
mov dword [ebp - 0x44], ecx
sub eax, edx
fild dword [ebp - 0x44]
push eax
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x24]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x48], edx
push eax
fild dword [ebp - 0x48]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, esi
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx + 4]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4bd6
jmp 0x4a4bc1
cmp word [eax + 0x44], 0
je 0x4a4b1a
fld dword [eax + 0x54]
fadd dword [eax + 0x50]
fstp dword [eax + 0x50]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add edx, eax
fld dword [edx + 0x50]
fcomp dword [edx + 0x48]
fnstsw ax
test ah, 0x41
jne 0x4a4a58
mov dword [edx + 0x50], 0xbecccccd
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x20]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x50]
push ecx
push edx
movsx ecx, word [eax + 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
fld dword [esi + 0x10]
movsx ecx, word [esi + 0x2a]
fisub dword [ebp - 0x18]
mov dx, ax
mov ax, word [esi + 0x1c]
mov dword [ebp - 0x4c], ecx
imul edx, eax
fild dword [ebp - 0x4c]
movsx eax, dx
fsubp st(1)
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x22]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x50], edx
push eax
fild dword [ebp - 0x50]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4b14
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x539844]
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x20]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x28]
push ecx
push edx
movsx ecx, word [eax + 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
fld dword [esi + 0x10]
movsx ecx, word [esi + 0x2a]
fisub dword [ebp - 0x18]
mov dx, ax
mov ax, word [esi + 0x1c]
mov dword [ebp - 0x54], ecx
imul edx, eax
fild dword [ebp - 0x54]
movsx eax, dx
fsubp st(1)
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x22]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x58], edx
push eax
fild dword [ebp - 0x58]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, esi
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4bd6
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push edi
call fcn.004a3b00
mov ecx, dword [0x539844]
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
fld dword [edx + eax + 0x2c]
fsub dword [0x538b58]
lea eax, [edx + eax + 0x2c]
fstp dword [eax]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add edx, eax
fld dword [edx + 0x2c]
fcomp dword [0x4013c0]
fnstsw ax
test ah, 1
je 0x4a4c5a
fld dword [edx + 0x28]
fcomp dword [0x4014d8]
fnstsw ax
test ah, 0x41
je 0x4a4c5a
mov byte [edx + 0x18], 0
mov ebx, dword [ecx + 0x14]
mov eax, edi
sub eax, ebx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add eax, edx
cmp word [eax + 0x34], 0
je 0x4a4c5a
mov cx, word [eax + 0x3c]
not cx
mov word [eax + 0x3c], cx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [0x539844]
mov eax, 1
add edi, eax
jmp 0x4a478d
wait
push 0x4a4c87
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
ret